public abstract class SubcomponentImpl extends StructuralFeatureImpl implements Subcomponent
The following features are implemented:
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
copyright
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsProperty(Property property)
Query whether this object accepts values for the given property.
|
ComponentClassifier |
basicGetClassifier() |
ComponentPrototype |
basicGetPrototype() |
Subcomponent |
basicGetRefined() |
RefinableElement |
basicGetRefinedElement() |
SubcomponentType |
basicGetSubcomponentType() |
ArrayDimension |
createArrayDimension() |
ComponentImplementationReference |
createImplementationReference() |
ModeBinding |
createOwnedModeBinding() |
PrototypeBinding |
createOwnedPrototypeBinding(org.eclipse.emf.ecore.EClass eClass) |
int |
eBaseStructuralFeatureID(int derivedFeatureID,
java.lang.Class<?> baseClass) |
int |
eDerivedStructuralFeatureID(int baseFeatureID,
java.lang.Class<?> baseClass) |
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) |
void |
eUnset(int featureID) |
ComponentClassifier |
getAllClassifier() |
org.eclipse.emf.common.util.EList<Feature> |
getAllFeatures()
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 feature is returned in the list.
|
org.eclipse.emf.common.util.EList<Mode> |
getAllInModes() |
org.eclipse.emf.common.util.EList<Subcomponent> |
getAllSubcomponentRefinements()
Return the subcomponent and any of the subcomponents it refines
|
org.eclipse.emf.common.util.EList<ArrayDimension> |
getArrayDimensions() |
ComponentClassifier |
getClassifier() |
ComponentImplementation |
getComponentImplementation()
returns the component implementation object of a given subcomponent
|
ComponentType |
getComponentType()
returns the component type object of a given subcomponent
|
org.eclipse.emf.common.util.EList<ComponentImplementationReference> |
getImplementationReferences() |
org.eclipse.emf.common.util.EList<Mode> |
getInModes() |
org.eclipse.emf.common.util.EList<ModeBinding> |
getOwnedModeBindings() |
org.eclipse.emf.common.util.EList<PrototypeBinding> |
getOwnedPrototypeBindings() |
void |
getPropertyValue(Property prop,
PropertyAcc pas,
Classifier cl) |
void |
getPropertyValueInternal(Property prop,
PropertyAcc pas,
boolean fromInstanceSlaveCall)
Helper routine for computing the value of the property.
|
ComponentPrototype |
getPrototype() |
Subcomponent |
getRefined() |
RefinableElement |
getRefinedElement() |
SubcomponentType |
getSubcomponentType() |
boolean |
isAllModes() |
boolean |
isSetInModes() |
boolean |
isSetRefinedElement() |
boolean |
isSetSubcomponentType() |
PrototypeBinding |
lookupPrototypeBinding(Prototype proto) |
void |
setAllModes(boolean newAllModes) |
void |
setRefined(Subcomponent newRefined) |
java.lang.String |
toString() |
getFeaturingClassifiers
basicGetRefinementContext, getName, getRefinementContext
allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getNamespace, getNonModalPropertyValue, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueList, getPropertyValues, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, isSetOwnedElements, mustBeOwned, not_own_self
getAdapter, getLocationReference, setLocationReference, setLocationReference
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
eAllContents, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
eNotificationRequired, eNotify
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCategory
getRefinementContext
getFeaturingClassifiers
public org.eclipse.emf.common.util.EList<Mode> getInModes()
getInModes
in interface ModalElement
Aadl2Package.getModalElement_InMode()
public boolean isSetInModes()
public org.eclipse.emf.common.util.EList<ArrayDimension> getArrayDimensions()
getArrayDimensions
in interface ArrayableElement
Aadl2Package.getArrayableElement_ArrayDimension()
public ArrayDimension createArrayDimension()
createArrayDimension
in interface ArrayableElement
ArrayDimension
.ArrayableElement.getArrayDimensions()
public SubcomponentType getSubcomponentType()
getSubcomponentType
in interface Subcomponent
Aadl2Package.getSubcomponent_SubcomponentType()
public SubcomponentType basicGetSubcomponentType()
public ComponentClassifier getClassifier()
getClassifier
in interface Subcomponent
Aadl2Package.getSubcomponent_Classifier()
public ComponentClassifier basicGetClassifier()
public org.eclipse.emf.common.util.EList<PrototypeBinding> getOwnedPrototypeBindings()
getOwnedPrototypeBindings
in interface Subcomponent
Aadl2Package.getSubcomponent_OwnedPrototypeBinding()
public PrototypeBinding createOwnedPrototypeBinding(org.eclipse.emf.ecore.EClass eClass)
createOwnedPrototypeBinding
in interface Subcomponent
eClass
- The Ecore class of the PrototypeBinding
to create.PrototypeBinding
.Subcomponent.getOwnedPrototypeBindings()
public ComponentPrototype getPrototype()
getPrototype
in interface Subcomponent
Aadl2Package.getSubcomponent_Prototype()
public ComponentPrototype basicGetPrototype()
public org.eclipse.emf.common.util.EList<ModeBinding> getOwnedModeBindings()
getOwnedModeBindings
in interface Subcomponent
Aadl2Package.getSubcomponent_OwnedModeBinding()
public ModeBinding createOwnedModeBinding()
createOwnedModeBinding
in interface Subcomponent
ModeBinding
.Subcomponent.getOwnedModeBindings()
public boolean isAllModes()
isAllModes
in interface Subcomponent
Subcomponent.setAllModes(boolean)
,
Aadl2Package.getSubcomponent_AllModes()
public void setAllModes(boolean newAllModes)
setAllModes
in interface Subcomponent
newAllModes
- the new value of the 'All Modes' attribute.Subcomponent.isAllModes()
public org.eclipse.emf.common.util.EList<ComponentImplementationReference> getImplementationReferences()
getImplementationReferences
in interface Subcomponent
Aadl2Package.getSubcomponent_ImplementationReference()
public ComponentImplementationReference createImplementationReference()
createImplementationReference
in interface Subcomponent
ComponentImplementationReference
.Subcomponent.getImplementationReferences()
public Subcomponent getRefined()
getRefined
in interface Subcomponent
Subcomponent.setRefined(Subcomponent)
,
Aadl2Package.getSubcomponent_Refined()
public Subcomponent basicGetRefined()
public void setRefined(Subcomponent newRefined)
setRefined
in interface Subcomponent
newRefined
- the new value of the 'Refined' reference.Subcomponent.getRefined()
public org.eclipse.emf.common.util.EList<Mode> getAllInModes()
getAllInModes
in interface ModalElement
public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, org.eclipse.emf.common.notify.NotificationChain msgs)
eInverseRemove
in class NamedElementImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class StructuralFeatureImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class NamedElementImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class NamedElementImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class StructuralFeatureImpl
public int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
eBaseStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eBaseStructuralFeatureID
in class StructuralFeatureImpl
public int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
eDerivedStructuralFeatureID
in interface org.eclipse.emf.ecore.InternalEObject
eDerivedStructuralFeatureID
in class StructuralFeatureImpl
public java.lang.String toString()
toString
in class NamedElementImpl
public boolean isSetSubcomponentType()
public RefinableElement getRefinedElement()
getRefinedElement
in interface RefinableElement
getRefinedElement
in class RefinableElementImpl
Aadl2Package.getRefinableElement_RefinedElement()
public RefinableElement basicGetRefinedElement()
basicGetRefinedElement
in class RefinableElementImpl
public boolean isSetRefinedElement()
isSetRefinedElement
in class RefinableElementImpl
public ComponentImplementation getComponentImplementation()
getComponentImplementation
in interface Subcomponent
public ComponentType getComponentType()
getComponentType
in interface Subcomponent
public org.eclipse.emf.common.util.EList<Subcomponent> getAllSubcomponentRefinements()
getAllSubcomponentRefinements
in interface Subcomponent
public ComponentClassifier getAllClassifier()
getAllClassifier
in interface Subcomponent
public boolean acceptsProperty(Property property)
NamedElement
acceptsProperty
in interface NamedElement
acceptsProperty
in class NamedElementImpl
property
- The property definition to test.true
if the given property applies to this element.public final void getPropertyValueInternal(Property prop, PropertyAcc pas, boolean fromInstanceSlaveCall) throws InvalidModelException
NamedElement
NamedElementImpl
, but because of the way that
EMF deals with multiple inheritance, not all implementations of
NamedElement actually extend from NamedElementImpl.
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 NamedElement
getPropertyValueInternal
in class NamedElementImpl
prop
- The property whose value is to be retrieved. It must be
the case that this property is accepted by the property
holder, i.e., NamedElement.acceptsProperty(Property)
must return
true
.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 implementation. 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
feature group type.InvalidModelException
- Thrown if the property value cannot be
retrieved because the model is incomplete or otherwise
invalid.public PrototypeBinding lookupPrototypeBinding(Prototype proto)
lookupPrototypeBinding
in interface Subcomponent
public void getPropertyValue(Property prop, PropertyAcc pas, Classifier cl)
public org.eclipse.emf.common.util.EList<Feature> getAllFeatures()
getAllFeatures
in interface Subcomponent