|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
edu.cmu.sei.aadl.model.core.impl.AObjectImpl
edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl
edu.cmu.sei.aadl.model.core.impl.SubcomponentImpl
public class SubcomponentImpl
An implementation of the model object 'Subcomponent'.
Note: This class is abstract in the metamodel.
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 ClassifierReference |
classifierReference
holds classifier reference |
static java.lang.String |
copyright
|
protected boolean |
refined
The cached value of the ' Refined ' attribute |
protected static boolean |
REFINED_EDEFAULT
The default value of the ' Refined ' attribute |
protected RefinedReference |
refinedReference
holds feature refined reference |
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl |
---|
inModes, modeName, NO_MODE_EDEFAULT, noMode |
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl |
---|
properties |
Fields inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl |
---|
name, NAME_EDEFAULT |
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 |
SubcomponentImpl()
|
Method Summary | |
---|---|
protected org.eclipse.emf.ecore.EClass |
eStaticClass()
|
org.eclipse.emf.common.util.EList |
getAllSubcomponentRefinements()
Return the subcomponent and any of the subcomponents it refines |
ComponentCategory |
getCategory()
returns the ComponentCategory literal for the given subcomponent |
ClassifierReference |
getClassifierReference()
get extends reference names from ClassifierReference |
ComponentClassifier |
getComponentClassifier()
returns component classifier object of a given subcomponent |
ComponentImpl |
getComponentImpl()
returns the component implemenation object of a given subcomponent |
ComponentType |
getComponentType()
returns the component implemenation object of a given subcomponent |
protected java.util.List |
getInModesForPropertyAssociationSearch()
|
void |
getPropertyValueInternal(PropertyDefinition pn,
ModalPropertyValueAccumulator pva,
boolean fromInstanceSlaveCall)
Helper routine for computing the value of the property. |
java.lang.String |
getQualifiedClassifierName()
get qualified subcomponent classifier name from reference or parsed name. |
AObject |
getReferencedObject()
get the first object being referenced by this object. |
RefinedReference |
getRefinedReference()
get reference names from flowReference |
ComponentType |
getSubcomponentType()
returns the component type object for the subcomponent |
java.util.Collection |
getXAllAbstractPort()
get list of all abstract ports (ports, port groups, parameters )of a subcomponent, including those of ancestors These are the abstract ports of its classifier In case of refined abstract ports the refined abstract ports is returned in the list. |
ComponentClassifier |
getXAllClassifier()
Returns the component classifier object for the subcomponent. |
org.eclipse.emf.common.util.EList |
getXAllFeature()
get list of all features of a subcomponent, including ancestor features These are the features of its classifier In case of refined features the refined features is returned in the list. |
ComponentClassifier |
getXClassifier()
returns the component classifier object for the subcomponent same as getComponentClassifier. |
Subcomponent |
getXRefines()
returns component classifier being refined |
boolean |
isRefined()
flag indicating whether the subcomponent is refined |
protected void |
searchClassifier(PropertyDefinition pn,
ModalPropertyValueAccumulator pva,
boolean fromInstanceSlaveCall)
|
protected void |
searchRefinements(PropertyDefinition pn,
ModalPropertyValueAccumulator pva,
ModeContext mc)
|
void |
setClassifierReference(ClassifierReference cr)
set extends reference names from ClassifierReference |
void |
setComponentClassifier(ComponentClassifier ct)
sets the component type object reference of a given subcomponent |
void |
setRefined(boolean newRefined)
set flag indicating whether the subcomponent is refined |
void |
setRefinedReference(RefinedReference fr)
set sets reference names from refined reference |
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl |
---|
acceptsProperty, addInModes, addModeName, eGet, eInverseAdd, eInverseRemove, eIsSet, eSet, eUnset, getAllInModes, getInModes, getModeName, getPropertyValueInternal, isAllInMode, isInMode, isNoMode, setNoMode, toString |
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl |
---|
checkName, getName, setName |
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, 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.ModeMember |
---|
addInModes, addModeName, getAllInModes, getInModes, getModeName, isAllInMode, isInMode, isNoMode, setNoMode |
Methods inherited from interface edu.cmu.sei.aadl.model.core.NamedElement |
---|
getName, setName |
Methods inherited from interface edu.cmu.sei.aadl.model.core.AObject |
---|
addComment, getAadlSpec, getAObjectRoot, getChildren, getComment, getContainingClassifier, getContainingClassifierNameSpace, getContainingComponentImpl, getContainingComponentType, getContainingPropertyAssociationDefinitionConstant, getContainingSubcomponent, getLocationReference, getSecondReferencedObject, 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 |
---|
public static final java.lang.String copyright
protected RefinedReference refinedReference
protected ClassifierReference classifierReference
protected static final boolean REFINED_EDEFAULT
Refined
' attribute.
isRefined()
,
Constant Field Valuesprotected boolean refined
Refined
' attribute.
isRefined()
Constructor Detail |
---|
protected SubcomponentImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class ModeMemberImpl
public boolean isRefined()
isRefined
in interface Subcomponent
Subcomponent.setRefined(boolean)
public void setRefined(boolean newRefined)
setRefined
in interface Subcomponent
newRefined
- booleanSubcomponent.isRefined()
public ComponentType getSubcomponentType()
getSubcomponentType
in interface Subcomponent
public ComponentClassifier getXClassifier()
getXClassifier
in interface Subcomponent
public ComponentClassifier getXAllClassifier()
Subcomponent
getXAllClassifier
in interface Subcomponent
public java.lang.String getQualifiedClassifierName()
getQualifiedClassifierName
in interface Subcomponent
public ComponentImpl getComponentImpl()
getComponentImpl
in interface Subcomponent
public ComponentType getComponentType()
getComponentType
in interface Subcomponent
public ComponentClassifier getComponentClassifier()
public void setComponentClassifier(ComponentClassifier ct)
setComponentClassifier
in interface Subcomponent
ct
- public void setClassifierReference(ClassifierReference cr)
setClassifierReference
in interface Subcomponent
public ClassifierReference getClassifierReference()
getClassifierReference
in interface Subcomponent
public void setRefinedReference(RefinedReference fr)
setRefinedReference
in interface Subcomponent
public RefinedReference getRefinedReference()
getRefinedReference
in interface Subcomponent
public Subcomponent getXRefines()
getXRefines
in interface Subcomponent
public org.eclipse.emf.common.util.EList getAllSubcomponentRefinements()
getAllSubcomponentRefinements
in interface Subcomponent
public org.eclipse.emf.common.util.EList getXAllFeature()
getXAllFeature
in interface Subcomponent
public java.util.Collection getXAllAbstractPort()
getXAllAbstractPort
in interface Subcomponent
public final void getPropertyValueInternal(PropertyDefinition pn, ModalPropertyValueAccumulator pva, boolean fromInstanceSlaveCall) throws InvalidModelException
PropertyHolder
PropertyHolderImpl
, but because
of the way that EMF deals with multiple inheritance, not all
implementations of PropertyHolder actually extend from
PropertyHolderImpl.
In particular, this method does not create a new property value accumulator—it uses the one provided—and it does not look up the default value of the property.
getPropertyValueInternal
in interface PropertyHolder
getPropertyValueInternal
in class PropertyHolderImpl
pn
- The property whose value is to be retreived. It must be the
case that this property is accepted by the property holder,
i.e., PropertyHolder.acceptsProperty(PropertyDefinition)
must return
true
.pva
- The working property value accumulator to add results to.fromInstanceSlaveCall
- true
if the call is performing a lookup on the
declarative model on behalf of an instance model object. When
true
the lookup algorithm ignores the
"inherits" attribute on property definitions when it would
mean that the lookup should defer to the containing component
implemenation. Also disables the interpretation of contained
property associations in the declarative model because they
have already been applied to the instance model at this point.
The expectation is that the instance model lookup itself is
not ignoring the inherits attribute, and thus any inherited
property values will still be found correctly. Interpreting
the inherits attribute during the declarative model search is
redundant and causes problems later on. This flag does not
affect lookup for feature declarations because in that case
the inherit flag defers to the component type or port group
type.
InvalidModelException
- Thrown if the property value cannot be retreived because the
model is incomplete or otherwise invalid.protected java.util.List getInModesForPropertyAssociationSearch()
protected void searchRefinements(PropertyDefinition pn, ModalPropertyValueAccumulator pva, ModeContext mc)
protected void searchClassifier(PropertyDefinition pn, ModalPropertyValueAccumulator pva, boolean fromInstanceSlaveCall)
public AObject getReferencedObject()
AObjectImpl
getReferencedObject
in interface AObject
getReferencedObject
in class AObjectImpl
public ComponentCategory getCategory()
getCategory
in interface Subcomponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |