public abstract class ENamedElementImpl extends EModelElementImpl implements ENamedElement
The following features are implemented:
MinimalEObjectImpl.Container.Dynamic
MinimalEObjectImpl.Container
BasicEObjectImpl.EPropertiesHolder, BasicEObjectImpl.EPropertiesHolderBaseImpl, BasicEObjectImpl.EPropertiesHolderImpl
BasicNotifierImpl.EAdapterList<E extends java.lang.Object & Adapter>, BasicNotifierImpl.EObservableAdapterList
InternalEObject.EStore
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The cached value of the '
Name ' attribute |
protected static java.lang.String |
NAME_EDEFAULT
The default value of the '
Name ' attribute |
eAnnotations, eFlags, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
eContainer
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
NIL
EOPPOSITE_FEATURE_BASE
Modifier | Constructor and Description |
---|---|
protected |
ENamedElementImpl() |
Modifier and Type | Method and Description |
---|---|
EList<EObject> |
eContents()
Returns a list view of the content objects; it is unmodifiable.
|
EList<EObject> |
eCrossReferences()
Returns a list view of the cross referenced objects; it is unmodifiable.
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
java.lang.String |
getName()
Default is ID if name is null
|
java.lang.String |
getNameGen() |
void |
setName(java.lang.String newName) |
java.lang.String |
toString() |
eInverseAdd, eInverseRemove, eInvoke, eObjectForURIFragmentSegment, eSetDirectResource, eURIFragmentSegment, freeze, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
eBasicSetContainer, eInternalContainer
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapterListeners, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetAdapterListeners, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetProxyURI, eSettings
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues
eNotificationRequired, eNotify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEAnnotation, getEAnnotations
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
eNotificationRequired
protected static final java.lang.String NAME_EDEFAULT
Name
' attribute.
getName()
protected EClass eStaticClass()
eStaticClass
in class EModelElementImpl
public java.lang.String getName()
getName
in interface ENamedElement
ENamedElement.setName(String)
,
EcorePackage.getENamedElement_Name()
public java.lang.String toString()
toString
in class BasicEObjectImpl
public java.lang.String getNameGen()
public void setName(java.lang.String newName)
setName
in interface ENamedElement
newName
- the new value of the 'Name' attribute.ENamedElement.getName()
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface InternalEObject
eGet
in class EModelElementImpl
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface InternalEObject
eSet
in class EModelElementImpl
EObject.eSet(EStructuralFeature, Object)
public void eUnset(int featureID)
eUnset
in interface InternalEObject
eUnset
in class EModelElementImpl
EObject.eUnset(EStructuralFeature)
public boolean eIsSet(int featureID)
eIsSet
in interface InternalEObject
eIsSet
in class EModelElementImpl
EObject.eIsSet(EStructuralFeature)
public EList<EObject> eContents()
EObject
This will be the list of EObject
s determined by the
contents
of the containment features
of this object's meta class
.
Objects can, indirectly
, be removed
and will change to reflect container
changes.
The implicit tree
of contents is also directly available.
eContents
in interface EObject
eContents
in class MinimalEObjectImpl
EObject.eContainer()
,
EClass.getEAllContainments()
,
EObject.eGet(EStructuralFeature)
,
EcoreUtil.remove(EObject)
,
EObject.eAllContents()
public EList<EObject> eCrossReferences()
EObject
This will be the list of EObject
s determined by the
contents
of the reference features
of this object's meta class
,
excluding containment features
and their opposites
.
The cross reference list's iterator will be of type EContentsEList.FeatureIterator
,
for efficient determination of the feature
of each cross reference in the list, e.g.,
for (EContentsEList.FeatureIterator featureIterator = (EContentsEList.FeatureIterator)eObject.eCrossReferences().iterator(); featureIterator.hasNext(); ) { EObject eObject = (EObject)featureIterator.next(); EReference eReference = (EReference)featureIterator.feature(); ... }
eCrossReferences
in interface EObject
eCrossReferences
in class MinimalEObjectImpl
EObject.eContents()
,
EClass.getEAllReferences()
,
EClass.getEAllContainments()
,
EObject.eGet(EStructuralFeature)
,
EcoreUtil.CrossReferencer