org.eclipse.emf.ecore.impl
Class EReferenceImpl

java.lang.Object
  extended byorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended byorg.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended byorg.eclipse.emf.ecore.impl.EObjectImpl
              extended byorg.eclipse.emf.ecore.impl.EModelElementImpl
                  extended byorg.eclipse.emf.ecore.impl.ENamedElementImpl
                      extended byorg.eclipse.emf.ecore.impl.ETypedElementImpl
                          extended byorg.eclipse.emf.ecore.impl.EStructuralFeatureImpl
                              extended byorg.eclipse.emf.ecore.impl.EReferenceImpl
All Implemented Interfaces:
BasicExtendedMetaData.EStructuralFeatureExtendedMetaData.Holder, EModelElement, ENamedElement, EObject, EReference, EStructuralFeature, EStructuralFeature.Internal, ETypedElement, InternalEObject, Notifier

public class EReferenceImpl
extends EStructuralFeatureImpl
implements EReference

An implementation of the model object 'EReference'.

The following features are implemented:


Nested Class Summary
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
EStructuralFeatureImpl.InternalSettingDelegateFeatureMapDelegator, EStructuralFeatureImpl.InternalSettingDelegateMany, EStructuralFeatureImpl.InternalSettingDelegateSingle, EStructuralFeatureImpl.InternalSettingDelegateSingleContainer, EStructuralFeatureImpl.InternalSettingDelegateSingleData, EStructuralFeatureImpl.InternalSettingDelegateSingleDataDynamic, EStructuralFeatureImpl.InternalSettingDelegateSingleDataStatic, EStructuralFeatureImpl.InternalSettingDelegateSingleDataUnsettable, EStructuralFeatureImpl.InternalSettingDelegateSingleDataUnsettableDynamic, EStructuralFeatureImpl.InternalSettingDelegateSingleDataUnsettableStatic, EStructuralFeatureImpl.InternalSettingDelegateSingleEObject, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectContainment, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectContainmentUnsettable, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectContainmentWithInverse, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectResolving, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectResolvingUnsettable, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectResolvingWithInverse, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectUnsettable, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectWithInverse, EStructuralFeatureImpl.InternalSettingDelegateSingleEObjectWithInverseUnsettable, EStructuralFeatureImpl.SettingMany
 
Nested classes inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
BasicNotifierImpl.EAdapterList
 
Nested classes inherited from class org.eclipse.emf.ecore.EStructuralFeature
EStructuralFeature.Internal, EStructuralFeature.Setting
 
Nested classes inherited from class org.eclipse.emf.ecore.EStructuralFeature.Internal
EStructuralFeature.Internal.DynamicValueHolder, EStructuralFeature.Internal.SettingDelegate
 
Nested classes inherited from class org.eclipse.emf.ecore.InternalEObject
InternalEObject.EStore
 
Field Summary
protected static boolean CONTAINER_EDEFAULT
          The default value of the 'Container' attribute
protected  boolean containment
          The cached value of the 'Containment' attribute
protected static boolean CONTAINMENT_EDEFAULT
          The default value of the 'Containment' attribute
protected  EReference eOpposite
          The cached value of the 'EOpposite' reference
protected static boolean RESOLVE_PROXIES_EDEFAULT
          The default value of the 'Resolve Proxies' attribute
protected  boolean resolveProxies
          The cached value of the 'Resolve Proxies' attribute
 
Fields inherited from class org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
cachedEType, cachedIsFeatureMap, changeable, CHANGEABLE_EDEFAULT, containerClass, DEFAULT_VALUE_EDEFAULT, DEFAULT_VALUE_LITERAL_EDEFAULT, defaultValue, defaultValueFactory, defaultValueLiteral, derived, DERIVED_EDEFAULT, eStructuralFeatureExtendedMetaData, featureID, settingDelegate, transient_, TRANSIENT_EDEFAULT, unsettable, UNSETTABLE_EDEFAULT, volatile_, VOLATILE_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.ETypedElementImpl
eType, LOWER_BOUND_EDEFAULT, lowerBound, MANY_EDEFAULT, ordered, ORDERED_EDEFAULT, REQUIRED_EDEFAULT, unique, UNIQUE_EDEFAULT, UPPER_BOUND_EDEFAULT, upperBound
 
Fields inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
Fields inherited from interface org.eclipse.emf.ecore.ETypedElement
UNBOUNDED_MULTIPLICITY, UNSPECIFIED_MULTIPLICITY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EReferenceImpl()
           
 
Method Summary
 EReference basicGetEOpposite()
           
 EClass basicGetEReferenceType()
           
 NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)
           
 Object eGet(EStructuralFeature eFeature, boolean resolve)
           
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs)
           
 boolean eIsSet(EStructuralFeature eFeature)
           
 void eSet(EStructuralFeature eFeature, Object newValue)
           
protected  EClass eStaticClass()
           
 void eUnset(EStructuralFeature eFeature)
           
 EReference getEOpposite()
           
 EClass getEReferenceType()
           
 boolean isBidirectional()
           
 boolean isContainer()
           
 boolean isContainment()
           
 boolean isResolveProxies()
           
 void setContainment(boolean newContainment)
           
 void setEOpposite(EReference newEOpposite)
           
 void setResolveProxies(boolean newResolveProxies)
           
 String toString()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
getContainerClass, getDefaultValue, getDefaultValueLiteral, getEContainingClass, getExtendedMetaData, getFeatureID, getSettingDelegate, isChangeable, isDerived, isFeatureMap, isTransient, isUnsettable, isVolatile, setChangeable, setContainerClass, setDefaultValue, setDefaultValueLiteral, setDefaultValueLiteralGen, setDerived, setExtendedMetaData, setFeatureID, setSettingDelegate, setTransient, setUnsettable, setVolatile
 
Methods inherited from class org.eclipse.emf.ecore.impl.ETypedElementImpl
basicGetEType, freeze, getEType, getETypeGen, getLowerBound, getUpperBound, isMany, isOrdered, isRequired, isUnique, setEType, setLowerBound, setOrdered, setUnique, setUpperBound
 
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
getName, getNameGen, setName
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eObjectForURIFragmentSegment, eURIFragmentSegment, getEAnnotation, getEAnnotations, isFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eProperties, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalResource, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount, eStore
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.ecore.EStructuralFeature
getContainerClass, getDefaultValue, getDefaultValueLiteral, getEContainingClass, getFeatureID, isChangeable, isDerived, isTransient, isUnsettable, isVolatile, setChangeable, setDefaultValue, setDefaultValueLiteral, setDerived, setTransient, setUnsettable, setVolatile
 
Methods inherited from interface org.eclipse.emf.ecore.ETypedElement
getEType, getLowerBound, getUpperBound, isMany, isOrdered, isRequired, isUnique, setEType, setLowerBound, setOrdered, setUnique, setUpperBound
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eIsProxy, eResource
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eBaseStructuralFeatureID, eBasicSetContainer, eContainerFeatureID, eDerivedStructuralFeatureID, eInternalResource, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eResolveProxy, eSetClass, eSetProxyURI, eSetResource, eSetStore, eSetting, eStore, eURIFragmentSegment
 

Field Detail

CONTAINMENT_EDEFAULT

protected static final boolean CONTAINMENT_EDEFAULT
The default value of the 'Containment' attribute.

See Also:
isContainment(), Constant Field Values

containment

protected boolean containment
The cached value of the 'Containment' attribute.

See Also:
isContainment()

CONTAINER_EDEFAULT

protected static final boolean CONTAINER_EDEFAULT
The default value of the 'Container' attribute.

See Also:
isContainer(), Constant Field Values

RESOLVE_PROXIES_EDEFAULT

protected static final boolean RESOLVE_PROXIES_EDEFAULT
The default value of the 'Resolve Proxies' attribute.

See Also:
isResolveProxies(), Constant Field Values

resolveProxies

protected boolean resolveProxies
The cached value of the 'Resolve Proxies' attribute.

See Also:
isResolveProxies()

eOpposite

protected EReference eOpposite
The cached value of the 'EOpposite' reference.

See Also:
getEOpposite()
Constructor Detail

EReferenceImpl

protected EReferenceImpl()
Method Detail

eStaticClass

protected EClass eStaticClass()

Overrides:
eStaticClass in class EStructuralFeatureImpl

isBidirectional

public boolean isBidirectional()

eGet

public Object eGet(EStructuralFeature eFeature,
                   boolean resolve)

Specified by:
eGet in interface EObject
Overrides:
eGet in class EStructuralFeatureImpl

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)

Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class EStructuralFeatureImpl

eSet

public void eSet(EStructuralFeature eFeature,
                 Object newValue)

Specified by:
eSet in interface EObject
Overrides:
eSet in class EStructuralFeatureImpl

eUnset

public void eUnset(EStructuralFeature eFeature)

Specified by:
eUnset in interface EObject
Overrides:
eUnset in class EStructuralFeatureImpl

isContainment

public boolean isContainment()

Specified by:
isContainment in interface EReference
Overrides:
isContainment in class EStructuralFeatureImpl

setContainment

public void setContainment(boolean newContainment)

Specified by:
setContainment in interface EReference
Parameters:
newContainment - the new value of the 'Containment' attribute.
See Also:
EReference.isContainment()

isContainer

public boolean isContainer()

Specified by:
isContainer in interface EReference
Overrides:
isContainer in class EStructuralFeatureImpl

isResolveProxies

public boolean isResolveProxies()

Specified by:
isResolveProxies in interface EReference
Overrides:
isResolveProxies in class EStructuralFeatureImpl

setResolveProxies

public void setResolveProxies(boolean newResolveProxies)

Specified by:
setResolveProxies in interface EReference
Parameters:
newResolveProxies - the new value of the 'Resolve Proxies' attribute.
See Also:
EReference.isResolveProxies()

getEOpposite

public EReference getEOpposite()

Specified by:
getEOpposite in interface EReference
Overrides:
getEOpposite in class EStructuralFeatureImpl

basicGetEOpposite

public EReference basicGetEOpposite()


setEOpposite

public void setEOpposite(EReference newEOpposite)

Specified by:
setEOpposite in interface EReference
Parameters:
newEOpposite - the new value of the 'EOpposite' reference.
See Also:
EReference.getEOpposite()

getEReferenceType

public EClass getEReferenceType()

Specified by:
getEReferenceType in interface EReference
Returns:
the value of the 'EReference Type' reference.
See Also:
EcorePackage.getEReference_EReferenceType()

basicGetEReferenceType

public EClass basicGetEReferenceType()


eInverseAdd

public NotificationChain eInverseAdd(InternalEObject otherEnd,
                                     int featureID,
                                     Class baseClass,
                                     NotificationChain msgs)

Specified by:
eInverseAdd in interface InternalEObject
Overrides:
eInverseAdd in class EStructuralFeatureImpl

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        Class baseClass,
                                        NotificationChain msgs)

Specified by:
eInverseRemove in interface InternalEObject
Overrides:
eInverseRemove in class EStructuralFeatureImpl

eBasicRemoveFromContainer

public NotificationChain eBasicRemoveFromContainer(NotificationChain msgs)

Specified by:
eBasicRemoveFromContainer in interface InternalEObject
Overrides:
eBasicRemoveFromContainer in class EStructuralFeatureImpl

toString

public String toString()

Overrides:
toString in class EStructuralFeatureImpl

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