edu.cmu.sei.aadl.model.flow.impl
Class FlowElementImpl

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
                  extended by edu.cmu.sei.aadl.model.flow.impl.FlowElementImpl
All Implemented Interfaces:
AObject, FlowElement, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class FlowElementImpl
extends AObjectImpl
implements FlowElement

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  Connection connection
          The cached value of the 'Connection' reference
static java.lang.String copyright
           
protected  Subcomponent flowContext
          The cached value of the 'Flow Context' reference
protected  FlowSpec flowSpec
          The cached value of the 'Flow Spec' reference
 
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl
comment, 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 org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected FlowElementImpl()
           
 
Method Summary
 Connection basicGetConnection()
           
 Subcomponent basicGetFlowContext()
           
 FlowSpec basicGetFlowSpec()
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 void eUnset(int featureID)
           
 Connection getConnection()
           
 FeatureReference getFeatureReference()
           
 Subcomponent getFlowContext()
           
 FlowSpec getFlowSpec()
           
 java.lang.String getQualifiedName()
          return name of connection or subcomponent flowspec
 AObject getReferencedObject()
          get the first object being referenced by this object.
 AObject getSecondReferencedObject()
          get the second object being referenced by this object.
 boolean isConnectionReference()
          FlowElement represents a connection reference
 boolean isSubcomponentFlowSpecReference()
          FlowElement represents a subcomponent flowspec reference
 void setConnection(Connection newConnection)
           
 void setFeatureReference(FeatureReference fr)
           
 void setFlowContext(Subcomponent newFlowContext)
           
 void setFlowSpec(FlowSpec newFlowSpec)
           
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.AObjectImpl
addComment, eObjectForURIFragmentSegment, eURIFragmentSegment, getAadlSpec, getAdapter, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getSystemInstance, setLocationReference, setLocationReference, 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 edu.cmu.sei.aadl.model.core.AObject
addComment, getAadlSpec, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getSystemInstance, 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

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

flowSpec

protected FlowSpec flowSpec
The cached value of the 'Flow Spec' reference.

See Also:
getFlowSpec()

connection

protected Connection connection
The cached value of the 'Connection' reference.

See Also:
getConnection()

flowContext

protected Subcomponent flowContext
The cached value of the 'Flow Context' reference.

See Also:
getFlowContext()
Constructor Detail

FlowElementImpl

protected FlowElementImpl()

Method Detail

setFeatureReference

public void setFeatureReference(FeatureReference fr)
Specified by:
setFeatureReference in interface FlowElement

getFeatureReference

public FeatureReference getFeatureReference()
Specified by:
getFeatureReference in interface FlowElement

eStaticClass

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

Overrides:
eStaticClass in class AObjectImpl

getFlowSpec

public FlowSpec getFlowSpec()

Specified by:
getFlowSpec in interface FlowElement
Returns:
the value of the 'Flow Spec' reference.
See Also:
FlowElement.setFlowSpec(FlowSpec), FlowPackage.getFlowElement_FlowSpec()

basicGetFlowSpec

public FlowSpec basicGetFlowSpec()


setFlowSpec

public void setFlowSpec(FlowSpec newFlowSpec)

Specified by:
setFlowSpec in interface FlowElement
Parameters:
newFlowSpec - the new value of the 'Flow Spec' reference.
See Also:
FlowElement.getFlowSpec()

getConnection

public Connection getConnection()

Specified by:
getConnection in interface FlowElement
Returns:
the value of the 'Connection' reference.
See Also:
FlowElement.setConnection(Connection), FlowPackage.getFlowElement_Connection()

basicGetConnection

public Connection basicGetConnection()


setConnection

public void setConnection(Connection newConnection)

Specified by:
setConnection in interface FlowElement
Parameters:
newConnection - the new value of the 'Connection' reference.
See Also:
FlowElement.getConnection()

getFlowContext

public Subcomponent getFlowContext()

Specified by:
getFlowContext in interface FlowElement
Returns:
the value of the 'Flow Context' reference.
See Also:
FlowElement.setFlowContext(Subcomponent), FlowPackage.getFlowElement_FlowContext()

basicGetFlowContext

public Subcomponent basicGetFlowContext()


setFlowContext

public void setFlowContext(Subcomponent newFlowContext)

Specified by:
setFlowContext in interface FlowElement
Parameters:
newFlowContext - the new value of the 'Flow Context' reference.
See Also:
FlowElement.getFlowContext()

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 AObjectImpl

eSet

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

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

getQualifiedName

public java.lang.String getQualifiedName()
return name of connection or subcomponent flowspec

Specified by:
getQualifiedName in interface FlowElement
Returns:
String

isConnectionReference

public boolean isConnectionReference()
FlowElement represents a connection reference

Specified by:
isConnectionReference in interface FlowElement
Returns:
true if connection reference

isSubcomponentFlowSpecReference

public boolean isSubcomponentFlowSpecReference()
FlowElement represents a subcomponent flowspec reference

Specified by:
isSubcomponentFlowSpecReference in interface FlowElement
Returns:
true if subcomponent flowspec reference

getReferencedObject

public AObject getReferencedObject()
Description copied from class: AObjectImpl
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
Overrides:
getReferencedObject in class AObjectImpl

getSecondReferencedObject

public AObject getSecondReferencedObject()
Description copied from class: AObjectImpl
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
Overrides:
getSecondReferencedObject in class AObjectImpl