public abstract static class DelegatingEcoreEList.Generic<E> extends DelegatingEcoreEList<E>
DelegatingEcoreEList.Dynamic<E>, DelegatingEcoreEList.Generic<E>, DelegatingEcoreEList.UnmodifiableEList<E>, DelegatingEcoreEList.Unsettable<E>
DelegatingEList.EIterator<E1>, DelegatingEList.EListIterator<E1>, DelegatingEList.NonResolvingEIterator<E1>, DelegatingEList.NonResolvingEListIterator<E1>
AbstractEList.BasicIndexOutOfBoundsException
Modifier and Type | Field and Description |
---|---|
static int |
HAS_INSTANCE_CLASS |
static int |
HAS_MANY_INVERSE |
static int |
HAS_NAVIGABLE_INVERSE |
static int |
HAS_PROXIES |
static int |
IS_CONTAINER |
static int |
IS_CONTAINMENT |
static int |
IS_ENUM |
static int |
IS_EOBJECT |
static int |
IS_PRIMITIVE |
static int |
IS_SET |
static int |
IS_UNIQUE |
static int |
IS_UNSETTABLE |
protected int |
kind |
owner
Constructor and Description |
---|
DelegatingEcoreEList.Generic(int kind,
InternalEObject owner) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canContainNull()
Returns
! |
protected void |
didChange()
Called to indicate that the data storage has been changed.
|
protected boolean |
hasInstanceClass() |
protected boolean |
hasInverse()
Returns
false . |
protected boolean |
hasManyInverse() |
protected boolean |
hasNavigableInverse() |
protected boolean |
hasProxies() |
protected boolean |
isContainer() |
protected boolean |
isContainment() |
protected boolean |
isEObject() |
boolean |
isSet()
Returns whether the list is considered set, i.e., whether it's not empty.
|
protected boolean |
isUnique()
Returns whether objects are constrained to appear at most once in the list.
|
protected boolean |
isUnsettable() |
static int |
kind(EStructuralFeature eStructuralFeature) |
void |
unset()
Unsets the value held by the feature of the object.
|
protected boolean |
useEquals()
Returns whether
equals rather than == should be used to compare members. |
contains, createNotification, createNotification, dispatchNotification, get, getEObject, getEStructuralFeature, getFeature, getFeatureID, getFeatureType, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, indexOf, inverseAdd, inverseRemove, isInstance, isNotificationRequired, lastIndexOf, resolve, resolve, resolveProxy, set, toArray, toArray, validate
basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicToArray, basicToArray
addAllUnique, addAllUnique, addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, clear, createNotification, createNotificationChain, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddAllUnique, doAddUnique, doAddUnique, doClear, doMove, doRemove, doRemoveAll, doSetUnique, getFeatureID, hasShadow, move, remove, removeAll, setUnique, shadowAdd, shadowRemove, shadowSet
containsAll, delegateAdd, delegateAdd, delegateBasicList, delegateClear, delegateContains, delegateContainsAll, delegateEquals, delegateGet, delegateHashCode, delegateIndexOf, delegateIsEmpty, delegateIterator, delegateLastIndexOf, delegateList, delegateListIterator, delegateMove, delegateRemove, delegateSet, delegateSize, delegateToArray, delegateToArray, delegateToString, doClear, equals, get, hashCode, isEmpty, primitiveGet, remove, retainAll, size, toString
add, add, addAll, addAll, didAdd, didClear, didMove, didRemove, didSet, equalObjects, getDuplicates, getNonDuplicates, iterator, listIterator, listIterator, move, set
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicRemove, basicToArray, basicToArray, setUnique
public static final int IS_SET
public static final int IS_UNSETTABLE
public static final int HAS_INSTANCE_CLASS
public static final int HAS_NAVIGABLE_INVERSE
public static final int HAS_MANY_INVERSE
public static final int IS_CONTAINMENT
public static final int IS_CONTAINER
public static final int IS_UNIQUE
public static final int IS_PRIMITIVE
public static final int IS_ENUM
public static final int IS_EOBJECT
public static final int HAS_PROXIES
protected int kind
public DelegatingEcoreEList.Generic(int kind, InternalEObject owner)
public static int kind(EStructuralFeature eStructuralFeature)
protected boolean useEquals()
AbstractEList
equals
rather than ==
should be used to compare members.
The default is to return true
but clients can optimize performance by returning false
.
The performance difference is highly significant.useEquals
in class AbstractEList<E>
equals
rather than ==
should be used.protected boolean canContainNull()
DelegatingNotifyingListImpl
!DelegatingNotifyingListImpl.hasInverse()
.canContainNull
in class DelegatingEcoreEList<E>
!hasInverse
.protected boolean isUnique()
AbstractEList
false
, but clients can override this to ensure uniqueness of contents.
The performance impact is significant: operations such as add
are O(n) as a result requiring uniqueness.isUnique
in class DelegatingEcoreEList<E>
protected boolean hasInverse()
DelegatingNotifyingListImpl
false
.hasInverse
in class DelegatingEcoreEList<E>
false
.protected boolean hasManyInverse()
hasManyInverse
in class DelegatingEcoreEList<E>
protected boolean hasNavigableInverse()
hasNavigableInverse
in class DelegatingEcoreEList<E>
protected boolean isEObject()
isEObject
in class DelegatingEcoreEList<E>
protected boolean isContainment()
isContainment
in class DelegatingEcoreEList<E>
protected boolean hasProxies()
hasProxies
in class DelegatingEcoreEList<E>
protected boolean hasInstanceClass()
hasInstanceClass
in class DelegatingEcoreEList<E>
protected boolean isContainer()
protected boolean isUnsettable()
public boolean isSet()
DelegatingNotifyingListImpl
isSet
in interface EStructuralFeature.Setting
isSet
in interface InternalEList.Unsettable<E>
isSet
in class DelegatingEcoreEList<E>
EObject.eIsSet(org.eclipse.emf.ecore.EStructuralFeature)
public void unset()
InternalEList.Unsettable
unset
in interface EStructuralFeature.Setting
unset
in interface InternalEList.Unsettable<E>
unset
in class DelegatingEcoreEList<E>
EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)
protected void didChange()
AbstractEList
didChange
in class AbstractEList<E>