edu.cmu.sei.aadl.aadl2.impl
Class ElementImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl
                  extended by edu.cmu.sei.aadl.aadl2.impl.ElementImpl
All Implemented Interfaces:
Element, AObject, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
Direct Known Subclasses:
ArrayableElementImpl, ArrayRangeImpl, ArraySizeImpl, ArraySpecificationImpl, BasicPropertyAssociationImpl, CallContextImpl, CalledSubprogramImpl, CommentImpl, ComponentImplementationReferenceImpl, ComponentPrototypeActualImpl, ContainedNamedElementImpl, ContainmentPathElementImpl, FeatureGroupPrototypeActualImpl, FeaturePrototypeActualImpl, ModeBindingImpl, ModeTransitionTriggerImpl, NamedElementImpl, NumericRangeImpl, PropertyAssociationImpl, PropertyExpressionImpl, PropertyOwnerImpl, PrototypeBindingImpl, RelationshipImpl

public abstract class ElementImpl
extends AObjectImpl
implements Element

An implementation of the model object 'Element'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected static int[] OWNED_ELEMENT_ESUBSETS
          The array of subset feature identifiers for the 'Owned Element' containment reference list
protected  org.eclipse.emf.common.util.EList<Comment> ownedComments
          The cached value of the 'Owned Comment' containment reference list
 
Fields inherited from class edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl
copyright, locationReference
 
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 class org.eclipse.emf.ecore.impl.BasicEObjectImpl
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET
 
Fields inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
copyright
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected ElementImpl()
           
 
Method Summary
 org.eclipse.emf.common.util.EList<Element> allOwnedElements()
           
protected  org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClass eClass)
          Creates a new instance of the specified Ecore class
 Comment createOwnedComment()
           
 org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
protected  org.eclipse.uml2.common.util.CacheAdapter getCacheAdapter()
          Retrieves the cache adapter for this 'Element'
 org.eclipse.emf.common.util.EList<Element> getChildren()
          get the children of an Element This will be the content.
 Classifier getContainingClassifier()
          Get the enclosing component type or implementation or Feature Group Type.
 ComponentImplementation getContainingComponentImpl()
          Get the enclosing component implementation.
 Element getElementRoot()
          find the enclosing root object (aadlspec, package, propertyset, or system instance
 org.eclipse.emf.common.util.EList<Comment> getOwnedComments()
           
 org.eclipse.emf.common.util.EList<Element> getOwnedElements()
           
 Element getOwner()
           
 boolean has_owner(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 boolean isSetOwnedElements()
           
 boolean isSetOwner()
           
 boolean mustBeOwned()
           
 boolean not_own_self(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
           
 
Methods inherited from class edu.cmu.sei.aadl.aadl2.parsesupport.AObjectImpl
getAdapter, getLocationReference, setLocationReference, setLocationReference
 
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
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eContents, eCrossReferences, 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, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStore, eUnset, eURIFragmentSegment, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues, toString
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
getLocationReference, setLocationReference, setLocationReference
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

ownedComments

protected org.eclipse.emf.common.util.EList<Comment> ownedComments
The cached value of the 'Owned Comment' containment reference list.

See Also:
getOwnedComments()

OWNED_ELEMENT_ESUBSETS

protected static final int[] OWNED_ELEMENT_ESUBSETS
The array of subset feature identifiers for the 'Owned Element' containment reference list.

See Also:
getOwnedElements()
Constructor Detail

ElementImpl

protected ElementImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.EObjectImpl

getOwnedElements

public org.eclipse.emf.common.util.EList<Element> getOwnedElements()

Specified by:
getOwnedElements in interface Element
Returns:
the value of the 'Owned Element' containment reference list.
See Also:
Aadl2Package.getElement_OwnedElement(), Element.getOwner()

getOwner

public Element getOwner()

Specified by:
getOwner in interface Element
Returns:
the value of the 'Owner' container reference.
See Also:
Aadl2Package.getElement_Owner(), Element.getOwnedElements()

getOwnedComments

public org.eclipse.emf.common.util.EList<Comment> getOwnedComments()

Specified by:
getOwnedComments in interface Element
Returns:
the value of the 'Owned Comment' containment reference list.
See Also:
Aadl2Package.getElement_OwnedComment()

createOwnedComment

public Comment createOwnedComment()

Specified by:
createOwnedComment in interface Element
Returns:
The new Comment.
See Also:
Element.getOwnedComments()

not_own_self

public boolean not_own_self(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                            java.util.Map<java.lang.Object,java.lang.Object> context)

Specified by:
not_own_self in interface Element
Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

has_owner

public boolean has_owner(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                         java.util.Map<java.lang.Object,java.lang.Object> context)

Specified by:
has_owner in interface Element
Parameters:
diagnostics - The chain of diagnostics to which problems are to be appended.
context - The cache of context-specific information.

allOwnedElements

public org.eclipse.emf.common.util.EList<Element> allOwnedElements()

Specified by:
allOwnedElements in interface Element

mustBeOwned

public boolean mustBeOwned()

Specified by:
mustBeOwned in interface Element

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eInverseRemove in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eBasicRemoveFromContainerFeature

public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainerFeature(org.eclipse.emf.common.notify.NotificationChain msgs)

Overrides:
eBasicRemoveFromContainerFeature in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

create

protected org.eclipse.emf.ecore.EObject create(org.eclipse.emf.ecore.EClass eClass)
Creates a new instance of the specified Ecore class.

Parameters:
eClass - The Ecore class of the instance to create.
Returns:
The new instance.

getCacheAdapter

protected org.eclipse.uml2.common.util.CacheAdapter getCacheAdapter()
Retrieves the cache adapter for this 'Element'.

Returns:
The cache adapter for this 'Element'.

isSetOwnedElements

public boolean isSetOwnedElements()


isSetOwner

public boolean isSetOwner()


getElementRoot

public Element getElementRoot()
find the enclosing root object (aadlspec, package, propertyset, or system instance

Specified by:
getElementRoot in interface Element
Returns:
the root object

getChildren

public org.eclipse.emf.common.util.EList<Element> getChildren()
get the children of an Element This will be the content. In case of modal ComponentInstance this method is overwritten to provide mode-specific children, i.e., the subset that is active in a given mode

Specified by:
getChildren in interface Element
Returns:
EList Element

getContainingClassifier

public Classifier getContainingClassifier()
Description copied from interface: Element
Get the enclosing component type or implementation or Feature Group Type.

Specified by:
getContainingClassifier in interface Element
Returns:
containing classifier or null

getContainingComponentImpl

public ComponentImplementation getContainingComponentImpl()
Description copied from interface: Element
Get the enclosing component implementation.

Specified by:
getContainingComponentImpl in interface Element
Returns:
containing ComponentImpl or null