org.eclipse.emf.ecore.util
Class EcoreEList.Generic

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.eclipse.emf.common.util.BasicEList
                    |
                    +--org.eclipse.emf.common.notify.impl.NotifyingListImpl
                          |
                          +--org.eclipse.emf.ecore.util.EcoreEList
                                |
                                +--org.eclipse.emf.ecore.util.EcoreEList.Generic
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, EList, EStructuralFeature.Setting, InternalEList, InternalEList.Unsettable, java.util.List, NotifyingList, java.io.Serializable
Direct Known Subclasses:
EcoreEList.Dynamic
Enclosing class:
EcoreEList

public static class EcoreEList.Generic
extends EcoreEList

See Also:
Serialized Form

Inner classes inherited from class org.eclipse.emf.ecore.util.EcoreEList
EcoreEList.Dynamic, EcoreEList.Generic, EcoreEList.UnmodifiableEList
 
Inner classes inherited from class org.eclipse.emf.common.util.BasicEList
BasicEList.EIterator, BasicEList.EListIterator, BasicEList.NonResolvingEIterator, BasicEList.NonResolvingEListIterator, BasicEList.UnmodifiableEList
 
Inner classes inherited from class org.eclipse.emf.ecore.util.InternalEList
InternalEList.Unsettable
 
Field Summary
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
           
 
Fields inherited from class org.eclipse.emf.ecore.util.EcoreEList
dataClass, owner
 
Fields inherited from class org.eclipse.emf.common.util.BasicEList
data, size
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
EcoreEList.Generic(int kind, java.lang.Class dataClass, InternalEObject owner)
           
 
Method Summary
protected  boolean canContainNull()
          Returns !hasInverse().
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 a value is held by the feature of the object.
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.
static java.lang.Class wrapperClassFor(java.lang.Class javaClass)
           
 
Methods inherited from class org.eclipse.emf.ecore.util.EcoreEList
basicIterator, basicList, basicListIterator, basicListIterator, contains, createNotification, createNotification, dispatchNotification, get, getEObject, getEStructuralFeature, getFeature, getFeatureID, getFeatureType, getInverseEReference, getInverseFeatureClass, getInverseFeatureID, getNotifier, indexOf, inverseAdd, inverseRemove, isNotificationRequired, lastIndexOf, newData, resolve, resolveProxy, set, toArray, toArray, validate
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifyingListImpl
addAllUnique, addAllUnique, addUnique, addUnique, basicAdd, basicRemove, basicSet, clear, getFeatureID, move, remove, removeAll, setUnique
 
Methods inherited from class org.eclipse.emf.common.util.BasicEList
add, add, addAll, addAll, assign, basicGet, clone, containsAll, data, didAdd, didClear, didMove, didRemove, didSet, equalObjects, equals, get, getDuplicates, getNonDuplicates, grow, hashCode, isEmpty, iterator, listIterator, listIterator, move, remove, retainAll, set, setData, shrink, size, toString
 
Methods inherited from class java.util.AbstractList
removeRange, subList
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.util.InternalEList
addUnique, addUnique, basicAdd, basicRemove, setUnique
 
Methods inherited from interface org.eclipse.emf.common.util.EList
move, move
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, containsAll, equals, get, hashCode, isEmpty, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList
 

Field Detail

IS_SET

public static final int IS_SET

IS_UNSETTABLE

public static final int IS_UNSETTABLE

HAS_INSTANCE_CLASS

public static final int HAS_INSTANCE_CLASS

HAS_NAVIGABLE_INVERSE

public static final int HAS_NAVIGABLE_INVERSE

HAS_MANY_INVERSE

public static final int HAS_MANY_INVERSE

IS_CONTAINMENT

public static final int IS_CONTAINMENT

IS_CONTAINER

public static final int IS_CONTAINER

IS_UNIQUE

public static final int IS_UNIQUE

IS_PRIMITIVE

public static final int IS_PRIMITIVE

IS_ENUM

public static final int IS_ENUM

IS_EOBJECT

public static final int IS_EOBJECT

HAS_PROXIES

public static final int HAS_PROXIES

kind

protected int kind
Constructor Detail

EcoreEList.Generic

public EcoreEList.Generic(int kind,
                          java.lang.Class dataClass,
                          InternalEObject owner)
Method Detail

wrapperClassFor

public static java.lang.Class wrapperClassFor(java.lang.Class javaClass)

kind

public static int kind(EStructuralFeature eStructuralFeature)

useEquals

protected boolean useEquals()
Description copied from class: BasicEList
Returns whether 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.
Overrides:
useEquals in class BasicEList
Following copied from class: org.eclipse.emf.common.util.BasicEList
Returns:
whether equals rather than == should be used.

canContainNull

protected boolean canContainNull()
Description copied from class: NotifyingListImpl
Returns !NotifyingListImpl.hasInverse().
Overrides:
canContainNull in class NotifyingListImpl
Following copied from class: org.eclipse.emf.common.notify.impl.NotifyingListImpl
Returns:
!hasInverse.

isUnique

protected boolean isUnique()
Description copied from class: BasicEList
Returns whether objects are constrained to appear at most once in the list. The default is to return false, but clients can override this to ensure uniqueness of contents. The performance impact is signifcant: operations such as add are O(n) as a result requiring uniqueness.
Overrides:
isUnique in class BasicEList
Following copied from class: org.eclipse.emf.common.util.BasicEList
Returns:
whether objects are constrained to appear at most once in the list.

hasInverse

protected boolean hasInverse()
Description copied from class: NotifyingListImpl
Returns false.
Overrides:
hasInverse in class NotifyingListImpl
Following copied from class: org.eclipse.emf.common.notify.impl.NotifyingListImpl
Returns:
false.

hasManyInverse

protected boolean hasManyInverse()
Overrides:
hasManyInverse in class EcoreEList

hasNavigableInverse

protected boolean hasNavigableInverse()
Overrides:
hasNavigableInverse in class EcoreEList

isEObject

protected boolean isEObject()
Overrides:
isEObject in class EcoreEList

isContainment

protected boolean isContainment()
Overrides:
isContainment in class EcoreEList

hasProxies

protected boolean hasProxies()
Overrides:
hasProxies in class EcoreEList

hasInstanceClass

protected boolean hasInstanceClass()
Overrides:
hasInstanceClass in class EcoreEList

isContainer

protected boolean isContainer()

isUnsettable

protected boolean isUnsettable()

isSet

public boolean isSet()
Description copied from interface: InternalEList.Unsettable
Returns whether a value is held by the feature of the object.
Overrides:
isSet in class EcoreEList
Following copied from interface: org.eclipse.emf.ecore.util.InternalEList.Unsettable
Returns:
whether a value is held by the feature of the object.
See Also:
EObject.eIsSet(EStructuralFeature)

unset

public void unset()
Description copied from interface: InternalEList.Unsettable
Unsets the value held by the feature of the object.
Overrides:
unset in class EcoreEList
Following copied from interface: org.eclipse.emf.ecore.util.InternalEList.Unsettable
See Also:
EObject.eUnset(EStructuralFeature)

didChange

protected void didChange()
Description copied from class: BasicEList
Called to indicate that the data storage has been changed. This implementation does nothing; clients can use this to monitor change in the data storage.
Overrides:
didChange in class BasicEList

Copyright 2001-2003 IBM Corporation and others.
All Rights Reserved.