org.eclipse.emf.ecore.impl
Class ENamedElementImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.ecore.impl.FlatEObjectImpl
org.eclipse.emf.ecore.impl.EModelElementImpl
org.eclipse.emf.ecore.impl.ENamedElementImpl
- All Implemented Interfaces:
- Notifier, EModelElement, ENamedElement, EObject, InternalEObject
- Direct Known Subclasses:
- EClassifierImpl, EEnumLiteralImpl, EPackageImpl, ETypedElementImpl, ETypeParameterImpl
public abstract class ENamedElementImpl
- extends EModelElementImpl
- implements ENamedElement
An implementation of the model object 'ENamed Element'.
The following features are implemented:
|
Field Summary |
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 |
| Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
| 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.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
NAME_EDEFAULT
protected static final java.lang.String NAME_EDEFAULT
- The default value of the '
Name' attribute.
- See Also:
getName()
name
protected java.lang.String name
- The cached value of the '
Name' attribute.
- See Also:
getName()
ENamedElementImpl
protected ENamedElementImpl()
-
eStaticClass
protected EClass eStaticClass()
-
- Overrides:
eStaticClass in class EModelElementImpl
getName
public java.lang.String getName()
- Default is ID if name is null
- Specified by:
getName in interface ENamedElement
- Returns:
- the value of the 'Name' attribute.
- See Also:
ENamedElement.setName(String),
EcorePackage.getENamedElement_Name()
toString
public java.lang.String toString()
-
- Overrides:
toString in class BasicEObjectImpl
getNameGen
public java.lang.String getNameGen()
-
setName
public void setName(java.lang.String newName)
-
- Specified by:
setName in interface ENamedElement
- Parameters:
newName - the new value of the 'Name' attribute.- See Also:
ENamedElement.getName()
eGet
public java.lang.Object eGet(int featureID,
boolean resolve,
boolean coreType)
-
- Specified by:
eGet in interface InternalEObject- Overrides:
eGet in class EModelElementImpl
- See Also:
InternalEObject.eGet(EStructuralFeature, boolean, boolean)
eSet
public void eSet(int featureID,
java.lang.Object newValue)
-
- Specified by:
eSet in interface InternalEObject- Overrides:
eSet in class EModelElementImpl
- See Also:
EObject.eSet(EStructuralFeature, Object)
eUnset
public void eUnset(int featureID)
-
- Specified by:
eUnset in interface InternalEObject- Overrides:
eUnset in class EModelElementImpl
- See Also:
EObject.eUnset(EStructuralFeature)
eIsSet
public boolean eIsSet(int featureID)
-
- Specified by:
eIsSet in interface InternalEObject- Overrides:
eIsSet in class EModelElementImpl
- See Also:
EObject.eIsSet(EStructuralFeature)
eContents
public EList<EObject> eContents()
- Description copied from interface:
EObject
-
Returns a list view of the content objects; it is unmodifiable.
This will be the list of EObjects 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.
- Specified by:
eContents in interface EObject- Overrides:
eContents in class FlatEObjectImpl
- Returns:
- a list view of the content objects.
- See Also:
EObject.eContainer(),
EClass.getEAllContainments(),
EObject.eGet(EStructuralFeature),
EcoreUtil.remove(EObject),
EObject.eAllContents()
eCrossReferences
public EList<EObject> eCrossReferences()
- Description copied from interface:
EObject
-
Returns a list view of the cross referenced objects; it is unmodifiable.
This will be the list of EObjects 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 (EContentEList.FeatureIterator featureIterator =
(EContentEList.FeatureIterator)eObject.eCrossReferences().iterator();
featureIterator.hasNext(); )
{
EObject eObject = (EObject)featureIterator.next();
EReference eReference = (EReference)featureIterator.feature();
...
}
- Specified by:
eCrossReferences in interface EObject- Overrides:
eCrossReferences in class FlatEObjectImpl
- Returns:
- a list view of the cross referenced objects.
- See Also:
EObject.eContents(),
EClass.getEAllReferences(),
EClass.getEAllContainments(),
EObject.eGet(EStructuralFeature),
EcoreUtil.CrossReferencer