E - public abstract class EcoreEList<E> extends NotifyingInternalEListImpl<E> implements InternalEList.Unsettable<E>, EStructuralFeature.Setting
notifying internal EList that implements InternalEList and EStructuralFeature.Setting.
At least one of getEStructuralFeature() or getFeatureID() must be specialized
since each delegates to the other and without specialization this will lead to stack overflow.| Modifier and Type | Class and Description |
|---|---|
static class |
EcoreEList.Dynamic<E> |
static class |
EcoreEList.Generic<E>
An
Ecore EList with an implementation for exhibiting the appropriate feature behaviour as well as for tracking the unset state. |
static class |
EcoreEList.UnmodifiableEList<E> |
InternalEList.Unsettable<E>| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?> |
dataClass |
protected InternalEObject |
owner |
| Constructor and Description |
|---|
EcoreEList(java.lang.Class<?> dataClass,
InternalEObject owner) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object object)
Resolve to compare objects but do not modify list
|
protected NotificationImpl |
createNotification(int eventType,
boolean oldValue,
boolean newValue) |
protected NotificationImpl |
createNotification(int eventType,
java.lang.Object oldObject,
java.lang.Object newObject,
int index,
boolean wasSet) |
protected void |
dispatchNotification(Notification notification) |
java.lang.Object |
get(boolean resolve)
Returns the value held by the feature of the object;
it optionally
resolves the value. |
EObject |
getEObject()
Returns the object holding a value.
|
EStructuralFeature |
getEStructuralFeature()
Returns the specific feature holding a value for the object.
|
java.lang.Object |
getFeature() |
int |
getFeatureID() |
protected EClassifier |
getFeatureType() |
protected EReference |
getInverseEReference() |
protected java.lang.Class<?> |
getInverseFeatureClass() |
protected int |
getInverseFeatureID() |
java.lang.Object |
getNotifier() |
protected boolean |
hasInstanceClass() |
protected boolean |
hasManyInverse() |
protected boolean |
hasNavigableInverse() |
protected boolean |
hasProxies() |
int |
indexOf(java.lang.Object object) |
NotificationChain |
inverseAdd(E object,
NotificationChain notifications) |
NotificationChain |
inverseRemove(E object,
NotificationChain notifications) |
protected boolean |
isContainment() |
protected boolean |
isEObject() |
protected boolean |
isInstance(java.lang.Object object) |
protected boolean |
isNotificationRequired() |
boolean |
isSet()
Returns whether a value is held by the feature of the object.
|
int |
lastIndexOf(java.lang.Object object) |
protected java.lang.Object[] |
newData(int capacity) |
protected E |
resolve(E object) |
protected E |
resolve(int index,
E object) |
protected EObject |
resolve(int index,
EObject eObject) |
protected EObject |
resolveProxy(EObject eObject) |
void |
set(java.lang.Object newValue)
Set the value held by the feature of the object.
|
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
void |
unset()
Unsets the value held by the feature of the object.
|
protected E |
validate(int index,
E object) |
basicContains, basicContainsAll, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicToArray, basicToArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicContains, basicContainsAll, basicGet, basicIndexOf, basicIterator, basicLastIndexOf, basicList, basicListIterator, basicListIterator, basicRemove, basicToArray, basicToArray, setUniqueprotected final java.lang.Class<?> dataClass
protected final InternalEObject owner
public EcoreEList(java.lang.Class<?> dataClass,
InternalEObject owner)
protected java.lang.Object[] newData(int capacity)
protected boolean isInstance(java.lang.Object object)
public java.lang.Object getNotifier()
public java.lang.Object getFeature()
public int getFeatureID()
public EStructuralFeature getEStructuralFeature()
EStructuralFeature.SettinggetEStructuralFeature in interface EStructuralFeature.Settingprotected EClassifier getFeatureType()
protected EReference getInverseEReference()
protected int getInverseFeatureID()
protected java.lang.Class<?> getInverseFeatureClass()
protected boolean hasManyInverse()
protected boolean hasNavigableInverse()
protected boolean isEObject()
protected boolean isContainment()
protected boolean hasProxies()
protected boolean hasInstanceClass()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
protected NotificationImpl createNotification(int eventType,
java.lang.Object oldObject,
java.lang.Object newObject,
int index,
boolean wasSet)
protected NotificationImpl createNotification(int eventType,
boolean oldValue,
boolean newValue)
protected void dispatchNotification(Notification notification)
protected boolean isNotificationRequired()
public NotificationChain inverseAdd(E object, NotificationChain notifications)
public NotificationChain inverseRemove(E object, NotificationChain notifications)
public boolean contains(java.lang.Object object)
public int indexOf(java.lang.Object object)
public int lastIndexOf(java.lang.Object object)
public EObject getEObject()
EStructuralFeature.SettinggetEObject in interface EStructuralFeature.Settingpublic java.lang.Object get(boolean resolve)
EStructuralFeature.Settingresolves the value.get in interface EStructuralFeature.Settingresolve - whether to resolve.EObject.eGet(EStructuralFeature, boolean)public void set(java.lang.Object newValue)
EStructuralFeature.Settingset in interface EStructuralFeature.SettingnewValue - the newValue.EObject.eSet(EStructuralFeature, Object)public boolean isSet()
InternalEList.UnsettableisSet in interface EStructuralFeature.SettingisSet in interface InternalEList.Unsettable<E>EObject.eIsSet(org.eclipse.emf.ecore.EStructuralFeature)public void unset()
InternalEList.Unsettableunset in interface EStructuralFeature.Settingunset in interface InternalEList.Unsettable<E>EObject.eUnset(org.eclipse.emf.ecore.EStructuralFeature)Copyright © 2018. Licensed under the Eclipse Public License v1.0. All rights reserved.
Submit a bug or feature