Tabnine Logo
EStructuralFeature.setName
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Reference (javax.naming)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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