public abstract class DelegatingEcoreEList<E> extends DelegatingNotifyingInternalEListImpl<E> implements InternalEList.Unsettable<E>, EStructuralFeature.Setting
delegating notifying internal EList
that implements InternalEList.Unsettable 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 |
DelegatingEcoreEList.Dynamic<E> |
static class |
DelegatingEcoreEList.Generic<E> |
static class |
DelegatingEcoreEList.UnmodifiableEList<E> |
static class |
DelegatingEcoreEList.Unsettable<E>
A
delegating Ecore EList with an implementation for tracking the unset state. |
| Modifier and Type | Field and Description |
|---|---|
protected InternalEObject |
owner |
| Constructor and Description |
|---|
DelegatingEcoreEList(InternalEObject owner) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canContainNull() |
boolean |
contains(java.lang.Object object)
Resolve to compare objects but do not modify list
|
boolean |
containsAll(java.util.Collection<?> collection)
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 |
hasInverse() |
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.
|
protected boolean |
isUnique() |
int |
lastIndexOf(java.lang.Object object) |
protected E |
resolve(E object) |
protected E |
resolve(int index,
E object) |
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, basicGet, 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 InternalEObject owner
public DelegatingEcoreEList(InternalEObject owner)
protected boolean canContainNull()
protected boolean isUnique()
protected boolean hasInverse()
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 boolean containsAll(java.util.Collection<?> collection)
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