org.eclipse.emf.ecore.impl
Class EReferenceImpl

java.lang.Object
  |
  +--org.eclipse.emf.common.notify.impl.NotifierImpl
        |
        +--org.eclipse.emf.ecore.impl.EObjectImpl
              |
              +--org.eclipse.emf.ecore.impl.EModelElementImpl
                    |
                    +--org.eclipse.emf.ecore.impl.ENamedElementImpl
                          |
                          +--org.eclipse.emf.ecore.impl.ETypedElementImpl
                                |
                                +--org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
                                      |
                                      +--org.eclipse.emf.ecore.impl.EReferenceImpl
All Implemented Interfaces:
EModelElement, ENamedElement, EObject, EReference, EStructuralFeature, ETypedElement, InternalEObject, Notifier

public class EReferenceImpl
extends EStructuralFeatureImpl
implements EReference

An implementation of the model object 'EReference'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder
 
Inner classes inherited from class org.eclipse.emf.ecore.EStructuralFeature
EStructuralFeature.Setting
 
Field Summary
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
changeable, CHANGEABLE_EDEFAULT, containerClass, DEFAULT_VALUE_LITERAL_EDEFAULT, defaultValue, defaultValueFactory, defaultValueLiteral, featureID, LOWER_BOUND_EDEFAULT, lowerBound, transient_, TRANSIENT_EDEFAULT, unique, UNIQUE_EDEFAULT, unsettable, UNSETTABLE_EDEFAULT, UPPER_BOUND_EDEFAULT, upperBound, volatile_, VOLATILE_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.ETypedElementImpl
eType
 
Fields inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
name, NAME_EDEFAULT
 
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eAnnotations
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eContainer, eContainerFeatureID, ELAST_EOBJECT_FLAG, eProperties
 
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature
UNBOUNDED_MULTIPLICITY
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected EReferenceImpl()
           
 
Method Summary
 EReference basicGetEOpposite()
          
 EClass basicGetEReferenceType()
          
 java.lang.Object eGet(EStructuralFeature eFeature, boolean resolve)
          
 NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, java.lang.Class baseClass, NotificationChain msgs)
          
 boolean eIsSet(EStructuralFeature eFeature)
          
 void eSet(EStructuralFeature eFeature, java.lang.Object newValue)
          
protected  EClass eStaticClass()
          
 void eUnset(EStructuralFeature eFeature)
          
 EClass getEContainingClass()
          Returns the value of the 'EContaining Class' reference.
 EReference getEOpposite()
          
 EClass getEReferenceType()
          
 boolean isBidirectional()
           
 boolean isContainer()
          
 boolean isContainment()
          
 boolean isResolveProxies()
          
 void setContainment(boolean newContainment)
          
 void setEOpposite(EReference newEOpposite)
          
 void setResolveProxies(boolean newResolveProxies)
          
 java.lang.String toString()
          
 
Methods inherited from class org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
createDynamicSetting, getContainerClass, getDefaultValue, getDefaultValueLiteral, getFeatureID, getLowerBound, getUpperBound, isChangeable, isMany, isRequired, isTransient, isUnique, isUnsettable, isVolatile, setChangeable, setContainerClass, setDefaultValue, setDefaultValueLiteral, setDefaultValueLiteralGen, setFeatureID, setLowerBound, setTransient, setUnique, setUnsettable, setUpperBound, setVolatile
 
Methods inherited from class org.eclipse.emf.ecore.impl.ETypedElementImpl
basicGetEType, getEType, setEType
 
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
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingIndex, eSettings
 
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eAdapters, eDeliver, eNotificationRequired, eNotify, eSetDeliver
 
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, getFeatureID, getLowerBound, getUpperBound, isChangeable, isMany, isRequired, isTransient, isUnique, isUnsettable, isVolatile, setChangeable, setDefaultValue, setDefaultValueLiteral, setLowerBound, setTransient, setUnique, setUnsettable, setUpperBound, setVolatile
 
Methods inherited from interface org.eclipse.emf.ecore.ETypedElement
getEType, setEType
 
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, 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
eNotificationRequired
 

Field Detail

CONTAINMENT_EDEFAULT

protected static final boolean CONTAINMENT_EDEFAULT
The default value of the 'Containment' attribute.
See Also:
isContainment()

containment

protected boolean containment
The cached value of the 'Containment' attribute.
See Also:
isContainment()

RESOLVE_PROXIES_EDEFAULT

protected static final boolean RESOLVE_PROXIES_EDEFAULT
The default value of the 'Resolve Proxies' attribute.
See Also:
isResolveProxies()

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 java.lang.Object eGet(EStructuralFeature eFeature,
                             boolean resolve)
Specified by:
eGet in interface EObject
Overrides:
eGet in class EStructuralFeatureImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to fetch.
resolve - whether to resolve.
Returns:
the value of the given feature of the object.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
InternalEList.basicIterator(), InternalEList.basicList(), EcoreUtil.resolve(EObject, ResourceSet), EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature)

eIsSet

public boolean eIsSet(EStructuralFeature eFeature)
Specified by:
eIsSet in interface EObject
Overrides:
eIsSet in class EStructuralFeatureImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Returns:
whether the feature of the object is set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features.
See Also:
EObject.eSet(EStructuralFeature, Object), EObject.eUnset(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

eSet

public void eSet(EStructuralFeature eFeature,
                 java.lang.Object newValue)
Specified by:
eSet in interface EObject
Overrides:
eSet in class EStructuralFeatureImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature of the value to set.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
ClassCastException - if there is a type conflict.
ArrayStoreException - if there is a type conflect.
See Also:
EObject.eUnset(EStructuralFeature), EObject.eIsSet(EStructuralFeature), EObject.eGet(EStructuralFeature, boolean)

eUnset

public void eUnset(EStructuralFeature eFeature)
Specified by:
eUnset in interface EObject
Overrides:
eUnset in class EStructuralFeatureImpl
Following copied from interface: org.eclipse.emf.ecore.EObject
Parameters:
feature - the feature in question.
Throws:
java.lang.IllegalArgumentException - if the feature is not one the meta class's features, or it isn't changeable.
See Also:
EObject.eIsSet(EStructuralFeature), EObject.eSet(EStructuralFeature, Object), EObject.eGet(EStructuralFeature, boolean)

isContainment

public boolean isContainment()
Specified by:
isContainment in interface EReference
Following copied from interface: org.eclipse.emf.ecore.EReference
Returns:
the value of the 'Containment' attribute.
See Also:
EReference.setContainment(boolean), EcorePackage.getEReference_Containment()

setContainment

public void setContainment(boolean newContainment)
Specified by:
setContainment in interface EReference
Following copied from interface: org.eclipse.emf.ecore.EReference
Parameters:
value - the new value of the 'Containment' attribute.
See Also:
EReference.isContainment()

isContainer

public boolean isContainer()
Specified by:
isContainer in interface EReference
Following copied from interface: org.eclipse.emf.ecore.EReference
Returns:
the value of the 'Container' attribute.
See Also:
EcorePackage.getEReference_Container()

isResolveProxies

public boolean isResolveProxies()
Specified by:
isResolveProxies in interface EReference
Following copied from interface: org.eclipse.emf.ecore.EReference
Returns:
the value of the 'Resolve Proxies' attribute.
See Also:
EReference.setResolveProxies(boolean), EcorePackage.getEReference_ResolveProxies()

setResolveProxies

public void setResolveProxies(boolean newResolveProxies)
Specified by:
setResolveProxies in interface EReference
Following copied from interface: org.eclipse.emf.ecore.EReference
Parameters:
value - the new value of the 'Resolve Proxies' attribute.
See Also:
EReference.isResolveProxies()

getEOpposite

public EReference getEOpposite()
Specified by:
getEOpposite in interface EReference
Following copied from interface: org.eclipse.emf.ecore.EReference
Returns:
the value of the 'EOpposite' reference.
See Also:
EReference.setEOpposite(EReference), EcorePackage.getEReference_EOpposite()

basicGetEOpposite

public EReference basicGetEOpposite()

setEOpposite

public void setEOpposite(EReference newEOpposite)
Specified by:
setEOpposite in interface EReference
Following copied from interface: org.eclipse.emf.ecore.EReference
Parameters:
value - the new value of the 'EOpposite' reference.
See Also:
EReference.getEOpposite()

getEReferenceType

public EClass getEReferenceType()
Specified by:
getEReferenceType in interface EReference
Following copied from interface: org.eclipse.emf.ecore.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,
                                     java.lang.Class baseClass,
                                     NotificationChain msgs)
Overrides:
eInverseAdd in class EStructuralFeatureImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

eInverseRemove

public NotificationChain eInverseRemove(InternalEObject otherEnd,
                                        int featureID,
                                        java.lang.Class baseClass,
                                        NotificationChain msgs)
Overrides:
eInverseRemove in class EStructuralFeatureImpl
Following copied from interface: org.eclipse.emf.ecore.InternalEObject
Returns:
accumulated notifications.

toString

public java.lang.String toString()
Overrides:
toString in class EStructuralFeatureImpl

getEContainingClass

public EClass getEContainingClass()
Description copied from interface: EStructuralFeature
Returns the value of the 'EContaining Class' reference.

It represents the containing class of this feature.

Specified by:
getEContainingClass in interface EStructuralFeature
Overrides:
getEContainingClass in class EStructuralFeatureImpl
Following copied from interface: org.eclipse.emf.ecore.EStructuralFeature
Returns:
the value of the 'EContaining Class' reference.
See Also:
EcorePackage.getEStructuralFeature_EContainingClass()

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