Tabnine Logo
EStructuralFeature.isUnique
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: opensourceBIM/BIMserver

if (eStructuralFeature.isMany()) {
  List list = (List)value;
  if (eStructuralFeature.isUnique()) {
    Set<Object> t = new HashSet<>();
    for (Object v : list) {
origin: org.eclipse.emf/cdo

/**
 * @since 4.2
 */
protected boolean treatAsUnique(EStructuralFeature feature)
{
 return feature.isUnique();
}
origin: opensourceBIM/BIMserver

      + feature.getEType().getName() + " for feature " + feature.getName());
if (feature.isUnique()) {
  list.add(referencedObject);
} else {
origin: org.eclipse.emf/org.eclipse.emf.ecore

@Override
protected boolean isUnique()
{
 return getEStructuralFeature().isUnique();
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

@Override
protected boolean isUnique()
{
 return getEStructuralFeature().isUnique();
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

if (isMany(entryFeature))
 if (entryFeature.isUnique())
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

public void add(int index, EStructuralFeature feature, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  Entry [] entries = (Entry[])data;
  for (int i = 0; i < size; ++i)
  {
   Entry entry = entries[i];
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    if (isFeatureMap ? entry.equals(object) : object == null ? entry.getValue() == null : object.equals(entry.getValue()))
    {
     throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
    }
   }
  }
 }
 doAdd(index, isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

public void add(int index, EStructuralFeature feature, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  Entry [] entries = (Entry[])data;
  for (int i = 0; i < size; ++i)
  {
   Entry entry = entries[i];
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    if (isFeatureMap ? entry.equals(object) : object == null ? entry.getValue() == null : object.equals(entry.getValue()))
    {
     throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
    }
   }
  }
 }
 doAdd(index, isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

public void add(int index, EStructuralFeature feature, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  for (int i = 0, size = delegateSize(); i < size; ++i)
  {
   Entry entry = delegateGet(i);
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    if (isFeatureMap ? entry.equals(object) : object == null ? entry.getValue() == null : object.equals(entry.getValue()))
    {
     throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
    }
   }
  }
 }
 doAdd(index, isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

public void add(int index, EStructuralFeature feature, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  for (int i = 0, size = delegateSize(); i < size; ++i)
  {
   Entry entry = delegateGet(i);
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    if (isFeatureMap ? entry.equals(object) : object == null ? entry.getValue() == null : object.equals(entry.getValue()))
    {
     throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
    }
   }
  }
 }
 doAdd(index, isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

if (isMany(entryFeature))
 if (entryFeature.isUnique())
origin: org.eclipse.emf/org.eclipse.emf.ecore

public void add(EStructuralFeature feature, int index, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  Entry [] entries = (Entry[])data;
  for (int i = 0; i < size; ++i)
  {
   Entry entry = entries[i];
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    throw new IllegalArgumentException("The multiplicity constraint is violated");
   }
  }
 }
 doAdd(entryIndex(feature, index), isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

if (isMany(entryFeature))
 if (entryFeature.isUnique())
origin: org.eclipse.emf/org.eclipse.emf.ecore

if (isMany(entryFeature))
 if (entryFeature.isUnique())
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

public void add(EStructuralFeature feature, int index, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  Entry [] entries = (Entry[])data;
  for (int i = 0; i < size; ++i)
  {
   Entry entry = entries[i];
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    throw new IllegalArgumentException("The multiplicity constraint is violated");
   }
  }
 }
 doAdd(entryIndex(feature, index), isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

public void add(EStructuralFeature feature, int index, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  for (int i = 0, size = delegateSize(); i < size; ++i)
  {
   Entry entry = delegateGet(i);
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    throw new IllegalArgumentException("The multiplicity constraint is violated");
   }
  }
 }
 doAdd(entryIndex(feature, index), isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

public void add(EStructuralFeature feature, int index, Object object)
{
 boolean isFeatureMap = FeatureMapUtil.isFeatureMap(feature);
 if (isMany(feature))
 {
  if (feature.isUnique() && contains(feature, object))
  {
   throw new IllegalArgumentException("The 'no duplicates' constraint is violated");
  }
 }
 else
 {
  FeatureMapUtil.Validator validator = FeatureMapUtil.getValidator(owner.eClass(), feature);
  for (int i = 0, size = delegateSize(); i < size; ++i)
  {
   Entry entry = delegateGet(i);
   if (validator.isValid(entry.getEStructuralFeature()))
   {
    throw new IllegalArgumentException("The multiplicity constraint is violated");
   }
  }
 }
 doAdd(entryIndex(feature, index), isFeatureMap ? (Entry)object : createEntry(feature, object));
}
origin: org.eclipse.emf/org.eclipse.emf.ecore

if (isMany(entryFeature))
 if (entryFeature.isUnique() && contains(entryFeature, entry.getValue()))
origin: org.eclipse.emf/org.eclipse.emf.ecore

if (isMany(feature))
 if (feature.isUnique() && contains(feature, object))
origin: org.eclipse.emf/org.eclipse.emf.ecore

if (isMany(feature))
 if (feature.isUnique() && contains(feature, object))
org.eclipse.emf.ecoreEStructuralFeatureisUnique

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,
  • getFeatureID,
  • getEAnnotation,
  • getLowerBound,
  • isOrdered,
  • setChangeable,
  • eIsProxy,
  • setUpperBound

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • startActivity (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Collectors (java.util.stream)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Best plugins for Eclipse
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