congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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
  • getSystemService (Context)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Runner (org.openjdk.jmh.runner)
  • 21 Best IntelliJ 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