org.eclipse.emf.ecore.impl
Class EAttributeImpl

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.EAttributeImpl
All Implemented Interfaces:
EAttribute, EModelElement, ENamedElement, EObject, EStructuralFeature, EStructuralFeature.Internal, ETypedElement, InternalEObject, Notifier

public class EAttributeImpl
extends EStructuralFeatureImpl
implements EAttribute

An implementation of the model object 'EAttribute'.

The following features are implemented:


Inner classes inherited from class org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
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
 
Inner classes inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
EObjectImpl.EPropertiesHolder, EObjectImpl.EPropertiesHolderImpl
 
Inner classes inherited from class org.eclipse.emf.ecore.EStructuralFeature
EStructuralFeature.Internal, EStructuralFeature.Setting
 
Inner classes inherited from class org.eclipse.emf.ecore.EStructuralFeature.Internal
EStructuralFeature.Internal.DynamicValueHolder, EStructuralFeature.Internal.SettingDelegate
 
Field Summary
protected  boolean iD
          The cached value of the 'ID' attribute.
protected static boolean ID_EDEFAULT
          The default value of the 'ID' 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, settingDelegate, 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 EAttributeImpl()
           
 
Method Summary
 EDataType basicGetEAttributeType()
          
 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)
          
 EDataType getEAttributeType()
          
 EClass getEContainingClass()
          Returns the value of the 'EContaining Class' reference.
 boolean isID()
          
 void setID(boolean newID)
          
 java.lang.String toString()
          
 
Methods inherited from class org.eclipse.emf.ecore.impl.EStructuralFeatureImpl
getContainerClass, getDefaultValue, getDefaultValueLiteral, getEOpposite, getFeatureID, getLowerBound, getSettingDelegate, getUpperBound, isChangeable, isContainer, isContainment, isMany, isRequired, isResolveProxies, isTransient, isUnique, isUnsettable, isVolatile, setChangeable, setContainerClass, setDefaultValue, setDefaultValueLiteral, setDefaultValueLiteralGen, setFeatureID, setLowerBound, setSettingDelegate, 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, eBasicSetContainer, eClass, eContainer, eContainerFeatureID, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicFeatureID, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicSet, eDynamicUnset, eGet, eHasSettings, eInternalContainer, eInternalResource, eIsProxy, eProperties, eProxyURI, eResource, eSetClass, eSetProxyURI, eSetResource, eSetting, eSettingDelegate, eSettings, eStaticFeatureCount
 
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
eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eContainerFeatureID, eDerivedStructuralFeatureID, eInternalResource, eNotificationRequired, eObjectForURIFragmentSegment, eProxyURI, eSetClass, eSetProxyURI, eSetResource, eSetting, eURIFragmentSegment
 

Field Detail

ID_EDEFAULT

protected static final boolean ID_EDEFAULT
The default value of the 'ID' attribute.
See Also:
isID()

iD

protected boolean iD
The cached value of the 'ID' attribute.
See Also:
isID()
Constructor Detail

EAttributeImpl

protected EAttributeImpl()
Method Detail

eStaticClass

protected EClass eStaticClass()
Overrides:
eStaticClass in class EStructuralFeatureImpl

isID

public boolean isID()
Specified by:
isID in interface EAttribute
Following copied from interface: org.eclipse.emf.ecore.EAttribute
Returns:
the value of the 'ID' attribute.
See Also:
EClass.getEIDAttribute(), EAttribute.setID(boolean), EcorePackage.getEAttribute_ID()

setID

public void setID(boolean newID)
Specified by:
setID in interface EAttribute
Following copied from interface: org.eclipse.emf.ecore.EAttribute
Parameters:
value - the new value of the 'ID' attribute.
See Also:
EAttribute.isID()

getEAttributeType

public EDataType getEAttributeType()
Specified by:
getEAttributeType in interface EAttribute
Following copied from interface: org.eclipse.emf.ecore.EAttribute
Returns:
the value of the 'EAttribute Type' reference.
See Also:
EcorePackage.getEAttribute_EAttributeType()

basicGetEAttributeType

public EDataType basicGetEAttributeType()

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.

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.
java.lang.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)

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-2003 IBM Corporation and others.
All Rights Reserved.