congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EStructuralFeature.setUnique
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse.xsd/org.eclipse.xsd

if (unique != null)
 eStructuralFeature.setUnique("true".equals(unique));
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/org.eclipse.xsd

if (unique != null)
 eStructuralFeature.setUnique("true".equals(unique));
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.setChangeable(isChangeable);
s.setUnsettable(isUnsettable);
s.setUnique(isUnique);
s.setDerived(isDerived);
s.setOrdered(isOrdered);
s.setChangeable(isChangeable);
s.setUnsettable(isUnsettable);
s.setUnique(isUnique);
s.setDerived(isDerived);
s.setOrdered(isOrdered);
origin: org.eclipse.emf/org.eclipse.emf.ecore

s.setChangeable(isChangeable);
s.setUnsettable(isUnsettable);
s.setUnique(isUnique);
s.setDerived(isDerived);
s.setOrdered(isOrdered);
s.setChangeable(isChangeable);
s.setUnsettable(isUnsettable);
s.setUnique(isUnique);
s.setDerived(isDerived);
s.setOrdered(isOrdered);
org.eclipse.emf.ecoreEStructuralFeaturesetUnique

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
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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