Codota Logo
EStructuralFeature.setName
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain EStructuralFeature
private void myMethod () {
EStructuralFeature e =
  • Codota IconItemProviderAdapter zuper;zuper.getChildFeature(object, child)
  • Codota IconEClass eClass;String featureName;eClass.getEStructuralFeature(featureName)
  • Codota IconFeatureMap.Entry entry;entry.getEStructuralFeature()
  • Smart code suggestions by Codota
}
origin: org.eclipse.ocl/ecore

public EStructuralFeature createProperty(String name, EClassifier resultType) {
  
  EStructuralFeature result;
  
  if (resultType instanceof EClass) {
    result = org.eclipse.emf.ecore.EcoreFactory.eINSTANCE.createEReference();
  } else {
    result = org.eclipse.emf.ecore.EcoreFactory.eINSTANCE.createEAttribute();
  }
  
  result.setName(name);
  result.setEType(resultType);
  
  return result;
}

origin: org.eclipse.emf/org.eclipse.emf.ecore

simpleFeature.setName("simple");
simpleFeature.setEType(XMLTypePackage.Literals.STRING);
setFeatureKind(simpleFeature, SIMPLE_FEATURE);
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.eclipse.ocl/ecore

result.setName(name);
result.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 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

 boolean isOrdered)
s.setName(name);
((EStructuralFeatureImpl)s).setContainerClass(containerClass);
s.setTransient(isTransient);
 boolean isOrdered)
s.setName(name);
((EStructuralFeatureImpl)s).setContainerClass(containerClass);
s.setTransient(isTransient);
origin: org.eclipse.emf/org.eclipse.emf.ecore

 boolean isOrdered)
s.setName(name);
((EStructuralFeatureImpl)s).setContainerClass(containerClass);
s.setTransient(isTransient);
 boolean isOrdered)
s.setName(name);
((EStructuralFeatureImpl)s).setContainerClass(containerClass);
s.setTransient(isTransient);
org.eclipse.emf.ecoreEStructuralFeaturesetName

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,
  • setUpperBound

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now