congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EStructuralFeature.setUpperBound
Code IndexAdd Tabnine to your IDE (free)

How to use
setUpperBound
method
in
org.eclipse.emf.ecore.EStructuralFeature

Best Java code snippets using org.eclipse.emf.ecore.EStructuralFeature.setUpperBound (Showing top 9 results out of 315)

origin: opensourceBIM/BIMserver

realType.setDomain(new RealType());
EAttribute attribute = modifySimpleType(realType, ifcComplexNumber);
ifcComplexNumber.getEStructuralFeature("wrappedValueAsString").setUpperBound(2);
attribute.setUpperBound(2);
ifcComplexNumber.getEAnnotations().add(createWrappedAnnotation());
origin: org.eclipse.emf/org.eclipse.emf.ecore

eStructuralFeature.setUpperBound(ETypedElement.UNSPECIFIED_MULTIPLICITY);
eStructuralFeature.setDerived(true);
eStructuralFeature.setVolatile(true);
origin: org.eclipse.xsd/org.eclipse.xsd

if (upperBound != null)
 eStructuralFeature.setUpperBound(Integer.parseInt(upperBound));
origin: org.eclipse/org.eclipse.xsd

if (upperBound != null)
 eStructuralFeature.setUpperBound(Integer.parseInt(upperBound));
origin: org.eclipse/xtext

private EStructuralFeature createFeatureWith(String featureName, EClassifier featureClassifier,
    boolean isMultivalue, boolean isContainment) {
  EStructuralFeature newFeature;
  if (featureClassifier instanceof EClass) {
    EReference reference = EcoreFactory.eINSTANCE.createEReference();
    reference.setContainment(isContainment);
    newFeature = reference;
  } else {
    newFeature = EcoreFactory.eINSTANCE.createEAttribute();
  }
  newFeature.setName(featureName);
  newFeature.setEType(featureClassifier);
  newFeature.setLowerBound(0);
  newFeature.setUpperBound(isMultivalue ? -1 : 1);
  newFeature.setUnique(!isMultivalue || (isContainment && featureClassifier instanceof EClass));
  if (newFeature.getEType() instanceof EEnum) {
    newFeature.setDefaultValue(null);
  }
  return newFeature;
}
origin: org.jresearch.flexess.models/org.jresearch.flexess.models.uam

public static void initEStructuralFeature(final EStructuralFeature s, final EClassifier type, final String name, final int lowerBound, final int upperBound, final Class containerClass) {
  s.setName(name);
  ((EStructuralFeatureImpl) s).setContainerClass(containerClass);
  s.setTransient(false);
  s.setVolatile(false);
  s.setChangeable(true);
  s.setUnsettable(false);
  s.setUnique(true);
  s.setDerived(false);
  s.setOrdered(true);
  s.setLowerBound(lowerBound);
  s.setUpperBound(upperBound);
  s.setEType(type);
}
origin: org.jresearch.flexess.models/org.jresearch.flexess.models.uam

public static void initEStructuralFeature(final EStructuralFeature s, final EClassifier type, final String name, final String defaultValue, final int lowerBound, final int upperBound, final Class containerClass, final boolean isTransient, final boolean isVolatile, final boolean isChangeable, final boolean isUnsettable, final boolean isUnique, final boolean isDerived, final boolean isOrdered) {
  s.setName(name);
  ((EStructuralFeatureImpl) s).setContainerClass(containerClass);
  s.setTransient(isTransient);
  s.setVolatile(isVolatile);
  s.setChangeable(isChangeable);
  s.setUnsettable(isUnsettable);
  s.setUnique(isUnique);
  s.setDerived(isDerived);
  s.setOrdered(isOrdered);
  s.setLowerBound(lowerBound);
  s.setUpperBound(upperBound);
  s.setEType(type);
  if (defaultValue != null) {
    s.setDefaultValueLiteral(defaultValue);
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

s.setOrdered(isOrdered);
s.setLowerBound(lowerBound);
s.setUpperBound(upperBound);
s.setEType(type);
if (defaultValue != null)
s.setOrdered(isOrdered);
s.setLowerBound(lowerBound);
s.setUpperBound(upperBound);
s.setEGenericType(type);
if (defaultValue != null)
origin: org.eclipse.emf/org.eclipse.emf.ecore

s.setOrdered(isOrdered);
s.setLowerBound(lowerBound);
s.setUpperBound(upperBound);
s.setEType(type);
if (defaultValue != null)
s.setOrdered(isOrdered);
s.setLowerBound(lowerBound);
s.setUpperBound(upperBound);
s.setEGenericType(type);
if (defaultValue != null)
org.eclipse.emf.ecoreEStructuralFeaturesetUpperBound

Popular methods of EStructuralFeature

  • getName
  • isMany
  • getEType
  • getEContainingClass
    Returns the value of the 'EContaining Class' container reference. It is bidirectional and its opposi
  • isUnsettable
    Returns the value of the 'Unsettable' attribute. An unsettable feature explicitly models the state o
  • isChangeable
    Returns the value of the 'Changeable' attribute. The default value is "true".
  • isDerived
    Returns the value of the 'Derived' attribute. A derived feature typically computes its value from th
  • isTransient
    Returns the value of the 'Transient' attribute.
  • getDefaultValue
    Returns the value of the 'Default Value' attribute. It represents the default value that feature mus
  • getUpperBound
  • getDefaultValueLiteral
    Returns the value of the 'Default Value Literal' attribute. It represents the serialized form of the
  • getEGenericType
  • getDefaultValueLiteral,
  • getEGenericType,
  • isUnique,
  • getFeatureID,
  • getEAnnotation,
  • getLowerBound,
  • isOrdered,
  • setChangeable,
  • eIsProxy

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JComboBox (javax.swing)
  • JList (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now