edu.cmu.sei.aadl.model.core.impl
Class AObjectImpl

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.model.core.impl.AObjectImpl
All Implemented Interfaces:
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:
CallSequencesImpl, ConnectionsImpl, FeaturesImpl, FlowElementImpl, FlowsImpl, FlowSpecsImpl, ModesImpl, NamedElementImpl, PortGroupFeaturesImpl, PropertiesImpl, PropertyValueImpl, RefinesTypeImpl, SubcomponentsImpl

public abstract class AObjectImpl
extends org.eclipse.emf.ecore.impl.EObjectImpl
implements AObject

An implementation of the model object 'AObject'.

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  org.eclipse.emf.common.util.EList comment
          The cached value of the 'Comment' attribute list
static java.lang.String copyright
           
protected  LocationReference locationReference
          hold locatipon reference for defining identifier
 
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 org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected AObjectImpl()
           
 
Method Summary
 void addComment(java.lang.String newComment)
          phf: add element to multiplicity EList
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 org.eclipse.emf.ecore.EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 java.lang.String eURIFragmentSegment(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, org.eclipse.emf.ecore.EObject eObject)
           
 AadlSpec getAadlSpec()
          find the enclosing AadlSpec
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 AObject getAObjectRoot()
          find the enclosing root object (aadlspec, package, propertyset, or system instance
 org.eclipse.emf.common.util.EList getChildren()
          get the children of an AObject This will be the content.
 org.eclipse.emf.common.util.EList getComment()
           
 Classifier getContainingClassifier()
          Get the enclosing component type or implementation.
 AObject getContainingClassifierNameSpace()
          Get the containing package section or aadl spec as the name space for classifiers
 ComponentImpl getContainingComponentImpl()
          Get the enclosing component implementation.
 ComponentType getContainingComponentType()
          Get the enclosing component type .
 PropertyValueHolder getContainingPropertyAssociationDefinitionConstant()
          Get the enclosing PropertyAssociation, Definition or Constant.
 Subcomponent getContainingSubcomponent()
          Get the enclosing subcomponent or null.
 LocationReference getLocationReference()
          Returns the 'location reference' attribute.
 AObject getReferencedObject()
          get the first object being referenced by this object.
 AObject getSecondReferencedObject()
          get the second object being referenced by this object.
 SystemInstance getSystemInstance()
          find the enclosing SystemInstance to be overwritten by the InstanceObject class
 void setLocationReference(LocationReference lr)
          sets the 'location reference' attribute.
 void setLocationReference(java.lang.String fn, int ln)
          sets the 'location reference' attribute.
 java.lang.String toString()
           
 
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, eBasicRemoveFromContainerFeature, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, 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, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, 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 org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
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, 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.emf.ecore.InternalEObject
eNotificationRequired
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

locationReference

protected LocationReference locationReference
hold locatipon reference for defining identifier


comment

protected org.eclipse.emf.common.util.EList comment
The cached value of the 'Comment' attribute list.

See Also:
getComment()
Constructor Detail

AObjectImpl

protected AObjectImpl()

Method Detail

getAdapter

public final java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable

eStaticClass

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

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

getComment

public org.eclipse.emf.common.util.EList getComment()

Specified by:
getComment in interface AObject
Returns:
the value of the 'Comment' attribute list.
See Also:
CorePackage.getAObject_Comment()

addComment

public void addComment(java.lang.String newComment)
phf: add element to multiplicity EList

Specified by:
addComment in interface AObject
Parameters:
newComment - the value to add to 'Comment' attribute list.

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

toString

public java.lang.String toString()

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

getLocationReference

public LocationReference getLocationReference()
Returns the 'location reference' attribute.

Specified by:
getLocationReference in interface AObject

setLocationReference

public void setLocationReference(java.lang.String fn,
                                 int ln)
sets the 'location reference' attribute.

Specified by:
setLocationReference in interface AObject
Parameters:
fn - File name
ln - line number

setLocationReference

public void setLocationReference(LocationReference lr)
sets the 'location reference' attribute.

Specified by:
setLocationReference in interface AObject
Parameters:
lr - Location Reference

eURIFragmentSegment

public java.lang.String eURIFragmentSegment(org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
                                            org.eclipse.emf.ecore.EObject eObject)
Specified by:
eURIFragmentSegment in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eURIFragmentSegment in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eObjectForURIFragmentSegment

public org.eclipse.emf.ecore.EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
Specified by:
eObjectForURIFragmentSegment in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eObjectForURIFragmentSegment in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

getAadlSpec

public AadlSpec getAadlSpec()
find the enclosing AadlSpec

Specified by:
getAadlSpec in interface AObject
Returns:
AadlSpec object

getAObjectRoot

public AObject getAObjectRoot()
find the enclosing root object (aadlspec, package, propertyset, or system instance

Specified by:
getAObjectRoot in interface AObject
Returns:
the root object

getContainingComponentImpl

public ComponentImpl getContainingComponentImpl()
Get the enclosing component implementation.

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

getContainingSubcomponent

public Subcomponent getContainingSubcomponent()
Get the enclosing subcomponent or null.

Specified by:
getContainingSubcomponent in interface AObject

getContainingPropertyAssociationDefinitionConstant

public PropertyValueHolder getContainingPropertyAssociationDefinitionConstant()
Get the enclosing PropertyAssociation, Definition or Constant.

Specified by:
getContainingPropertyAssociationDefinitionConstant in interface AObject

getContainingClassifier

public Classifier getContainingClassifier()
Get the enclosing component type or implementation.

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

getContainingComponentType

public ComponentType getContainingComponentType()
Get the enclosing component type .

Specified by:
getContainingComponentType in interface AObject
Returns:
containing Component type or null

getContainingClassifierNameSpace

public AObject getContainingClassifierNameSpace()
Get the containing package section or aadl spec as the name space for classifiers

Specified by:
getContainingClassifierNameSpace in interface AObject
Returns:
AObject a package section or aadlspec or null

getChildren

public org.eclipse.emf.common.util.EList getChildren()
get the children of an AObject 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 AObject
Returns:
EList AObject

getSystemInstance

public SystemInstance getSystemInstance()
find the enclosing SystemInstance to be overwritten by the InstanceObject class

Specified by:
getSystemInstance in interface AObject
Returns:
null

getReferencedObject

public AObject getReferencedObject()
get the first object being referenced by this object. Implementations are provided by different classes Typically it is used to allow navigation to classifiers or to the source of a connection

Specified by:
getReferencedObject in interface AObject

getSecondReferencedObject

public AObject getSecondReferencedObject()
get the second object being referenced by this object. Implementations are provided by different classes Typically it is used to allow navigation to the destination of a connection

Specified by:
getSecondReferencedObject in interface AObject