edu.cmu.sei.aadl.model.property.impl
Class PropertyAssociationImpl

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.core.impl.NamedElementImpl
                      extended by edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
                          extended by edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl
                              extended by edu.cmu.sei.aadl.model.property.impl.PropertyAssociationImpl
All Implemented Interfaces:
AObject, ModeMember, NamedElement, PropertyHolder, PropertyAssociation, PropertyValueHolder, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class PropertyAssociationImpl
extends ModeMemberImpl
implements PropertyAssociation

An implementation of the model object 'Association'.

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  boolean access
          The cached value of the 'Access' attribute
protected static boolean ACCESS_EDEFAULT
          The default value of the 'Access' attribute
protected  boolean append
          The cached value of the 'Append' attribute
protected static boolean APPEND_EDEFAULT
          The default value of the 'Append' attribute
protected  org.eclipse.emf.common.util.EList appliesTo
          The cached value of the 'Applies To' reference list
protected  org.eclipse.emf.common.util.EList classifierReference
          holds classifier references for bindings
protected  org.eclipse.emf.common.util.EList componentPath
          The cached value of the 'Component Path' attribute list.
protected  boolean constant
          The cached value of the 'Constant' attribute
protected static boolean CONSTANT_EDEFAULT
          The default value of the 'Constant' attribute
static java.lang.String copyright
           
protected  boolean derived
          The cached value of the 'Derived' attribute
protected static boolean DERIVED_EDEFAULT
          The default value of the 'Derived' attribute
protected  org.eclipse.emf.common.util.EList inBinding
          The cached value of the 'In Binding' reference list
protected  PropertyDefinition propertyDefinition
          The cached value of the 'Property Definition' reference
protected  ParsedPropertyReference propertyReference
          holds parsed propertyset/property name as classifier reference
protected  org.eclipse.emf.common.util.EList propertyValue
          The cached value of the 'Property Value' containment reference list
 
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 PropertyAssociationImpl()
           
 
Method Summary
 boolean acceptsProperty(PropertyDefinition property)
          Problem: PropertieAssociation really shouldn't be a PropertyHolder, but is because ModeMember extends PropertyHolder.
 void addAppliesTo(PropertyHolder newAppliesTo)
          phf: add element to multiplicity EList
 void addClassifierReference(ClassifierReference cr)
          set extends reference names from ClassifierReference
 void addComponentPath(java.lang.String newComponentPath)
          parsed component path element is added
 void addInBinding(ComponentClassifier newInBinding)
          phf: add element to multiplicity EList
 void addPropertyValue(org.eclipse.emf.common.util.EList newPropertyValueList)
          Add a proeprty value list as property value
 void addPropertyValue(PropertyValue newPropertyValue)
          phf: add element to multiplicity EList
 PropertyDefinition basicGetPropertyDefinition()
           
 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)
           
 org.eclipse.emf.common.util.EList getAppliesTo()
           
 org.eclipse.emf.common.util.EList getClassifierReference()
          get bindings references from ClassifierReference
 org.eclipse.emf.common.util.EList getComponentPath()
          returns list of string representing component path
 org.eclipse.emf.common.util.EList getInBinding()
           
 ParsedPropertyReference getParsedPropertyReference()
          get the parsed property reference
 org.eclipse.emf.common.util.EList getPropertyAssociation()
          Property associations cannot have property associations
 PropertyDefinition getPropertyDefinition()
           
 org.eclipse.emf.common.util.EList getPropertyValue()
           
 java.lang.String getQualifiedName()
          get the qualified property name
 AadlPropertyValue getValue()
          Get the value from the property assocation abstracted as a AadlPropertyValue.
 boolean isAccess()
           
 boolean isAppend()
           
 boolean isConstant()
           
 boolean isDerived()
           
 void setAccess(boolean newAccess)
          phf: we want an add version for EList
 void setAppend(boolean newAppend)
          phf: we want an add version for EList
 void setConstant(boolean newConstant)
          phf: we want an add version for EList
 void setDerived(boolean newDerived)
           
 void setParsedPropertyReference(ParsedPropertyReference pr)
          set the parsed property reference
 void setPropertyDefinition(PropertyDefinition newPropertyDefinition)
          phf: we want an add version for EList
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.ModeMemberImpl
addInModes, addModeName, eInverseAdd, getAllInModes, getInModes, getModeName, getPropertyValueInternal, isAllInMode, isInMode, isNoMode, setNoMode
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.PropertyHolderImpl
addProperty, addPropertyValue, basicSetProperties, checkPropertyAssociation, createAccumulator, createPropertyAssociation, findPropertyAssociation, getProperties, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from class edu.cmu.sei.aadl.model.core.impl.NamedElementImpl
checkName, getName, setName
 
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, getReferencedObject, getSecondReferencedObject, getSystemInstance, 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, 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.PropertyHolder
addProperty, addPropertyValue, checkPropertyAssociation, findPropertyAssociation, getProperties, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getSimplePropertyValue, isModalPropertyValue, removeContainedPropertyAssociations, removeContainedPropertyAssociations, removePropertyAssociations, removePropertyAssociations, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setContainedPropertyValue, setProperties, setPropertyValue, setPropertyValue, setPropertyValue, setPropertyValue
 
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, getReferencedObject, 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

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

propertyDefinition

protected PropertyDefinition propertyDefinition
The cached value of the 'Property Definition' reference.

See Also:
getPropertyDefinition()

propertyValue

protected org.eclipse.emf.common.util.EList propertyValue
The cached value of the 'Property Value' containment reference list.

See Also:
getPropertyValue()

inBinding

protected org.eclipse.emf.common.util.EList inBinding
The cached value of the 'In Binding' reference list.

See Also:
getInBinding()

classifierReference

protected org.eclipse.emf.common.util.EList classifierReference
holds classifier references for bindings


propertyReference

protected ParsedPropertyReference propertyReference
holds parsed propertyset/property name as classifier reference


CONSTANT_EDEFAULT

protected static final boolean CONSTANT_EDEFAULT
The default value of the 'Constant' attribute.

See Also:
isConstant(), Constant Field Values

constant

protected boolean constant
The cached value of the 'Constant' attribute.

See Also:
isConstant()

ACCESS_EDEFAULT

protected static final boolean ACCESS_EDEFAULT
The default value of the 'Access' attribute.

See Also:
isAccess(), Constant Field Values

access

protected boolean access
The cached value of the 'Access' attribute.

See Also:
isAccess()

APPEND_EDEFAULT

protected static final boolean APPEND_EDEFAULT
The default value of the 'Append' attribute.

See Also:
isAppend(), Constant Field Values

append

protected boolean append
The cached value of the 'Append' attribute.

See Also:
isAppend()

componentPath

protected org.eclipse.emf.common.util.EList componentPath
The cached value of the 'Component Path' attribute list.


appliesTo

protected org.eclipse.emf.common.util.EList appliesTo
The cached value of the 'Applies To' reference list.

See Also:
getAppliesTo()

DERIVED_EDEFAULT

protected static final boolean DERIVED_EDEFAULT
The default value of the 'Derived' attribute.

See Also:
isDerived(), Constant Field Values

derived

protected boolean derived
The cached value of the 'Derived' attribute.

See Also:
isDerived()
Constructor Detail

PropertyAssociationImpl

protected PropertyAssociationImpl()

Method Detail

eStaticClass

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

Overrides:
eStaticClass in class ModeMemberImpl

getPropertyDefinition

public PropertyDefinition getPropertyDefinition()

Specified by:
getPropertyDefinition in interface PropertyAssociation
Returns:
the value of the 'Property Definition' reference.
See Also:
PropertyAssociation.setPropertyDefinition(PropertyDefinition), PropertyPackage.getPropertyAssociation_PropertyDefinition()

basicGetPropertyDefinition

public PropertyDefinition basicGetPropertyDefinition()


setPropertyDefinition

public void setPropertyDefinition(PropertyDefinition newPropertyDefinition)
phf: we want an add version for EList

Specified by:
setPropertyDefinition in interface PropertyAssociation
Parameters:
newPropertyDefinition - the new value of the 'Property Definition' reference.
See Also:
PropertyAssociation.getPropertyDefinition()

getPropertyValue

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

Specified by:
getPropertyValue in interface PropertyAssociation
Returns:
the value of the 'Property Value' containment reference list.
See Also:
PropertyPackage.getPropertyAssociation_PropertyValue()

addPropertyValue

public void addPropertyValue(PropertyValue newPropertyValue)
phf: add element to multiplicity EList

Specified by:
addPropertyValue in interface PropertyAssociation
Parameters:
newPropertyValue - the value to add to 'Property Value' containment reference list.

addPropertyValue

public void addPropertyValue(org.eclipse.emf.common.util.EList newPropertyValueList)
Add a proeprty value list as property value

Specified by:
addPropertyValue in interface PropertyAssociation
Parameters:
newPropertyValueList - EList of PropertyValue

getInBinding

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

Specified by:
getInBinding in interface PropertyAssociation
Returns:
the value of the 'In Binding' reference list.
See Also:
PropertyPackage.getPropertyAssociation_InBinding()

addInBinding

public void addInBinding(ComponentClassifier newInBinding)
phf: add element to multiplicity EList

Specified by:
addInBinding in interface PropertyAssociation
Parameters:
newInBinding - the value to add to 'In Binding' reference list.

getAppliesTo

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

Specified by:
getAppliesTo in interface PropertyAssociation
Returns:
the value of the 'Applies To' reference list.
See Also:
PropertyPackage.getPropertyAssociation_AppliesTo()

addAppliesTo

public void addAppliesTo(PropertyHolder newAppliesTo)
phf: add element to multiplicity EList

Specified by:
addAppliesTo in interface PropertyAssociation
Parameters:
newAppliesTo - the value to add to 'Applies To' reference list.

isDerived

public boolean isDerived()

Specified by:
isDerived in interface PropertyAssociation
Returns:
the value of the 'Derived' attribute.
See Also:
PropertyAssociation.setDerived(boolean), PropertyPackage.getPropertyAssociation_Derived()

setDerived

public void setDerived(boolean newDerived)

Specified by:
setDerived in interface PropertyAssociation
Parameters:
newDerived - the new value of the 'Derived' attribute.
See Also:
PropertyAssociation.isDerived()

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 ModeMemberImpl

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 ModeMemberImpl

eSet

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

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

eUnset

public void eUnset(int featureID)

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

eIsSet

public boolean eIsSet(int featureID)

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

isConstant

public boolean isConstant()

Specified by:
isConstant in interface PropertyAssociation
Returns:
the value of the 'Constant' attribute.
See Also:
PropertyAssociation.setConstant(boolean), PropertyPackage.getPropertyAssociation_Constant()

setConstant

public void setConstant(boolean newConstant)
phf: we want an add version for EList

Specified by:
setConstant in interface PropertyAssociation
Parameters:
newConstant - the new value of the 'Constant' attribute.
See Also:
PropertyAssociation.isConstant()

isAccess

public boolean isAccess()

Specified by:
isAccess in interface PropertyAssociation
Returns:
the value of the 'Access' attribute.
See Also:
PropertyAssociation.setAccess(boolean), PropertyPackage.getPropertyAssociation_Access()

setAccess

public void setAccess(boolean newAccess)
phf: we want an add version for EList

Specified by:
setAccess in interface PropertyAssociation
Parameters:
newAccess - the new value of the 'Access' attribute.
See Also:
PropertyAssociation.isAccess()

isAppend

public boolean isAppend()

Specified by:
isAppend in interface PropertyAssociation
Returns:
the value of the 'Append' attribute.
See Also:
PropertyAssociation.setAppend(boolean), PropertyPackage.getPropertyAssociation_Append()

setAppend

public void setAppend(boolean newAppend)
phf: we want an add version for EList

Specified by:
setAppend in interface PropertyAssociation
Parameters:
newAppend - the new value of the 'Append' attribute.
See Also:
PropertyAssociation.isAppend()

getPropertyAssociation

public org.eclipse.emf.common.util.EList getPropertyAssociation()
Property associations cannot have property associations

Specified by:
getPropertyAssociation in interface PropertyHolder
Overrides:
getPropertyAssociation in class PropertyHolderImpl
Returns:
Elist of property association or empty list if no such subclause

getComponentPath

public org.eclipse.emf.common.util.EList getComponentPath()
returns list of string representing component path

Specified by:
getComponentPath in interface PropertyAssociation

addComponentPath

public void addComponentPath(java.lang.String newComponentPath)
parsed component path element is added

Specified by:
addComponentPath in interface PropertyAssociation

toString

public java.lang.String toString()

Overrides:
toString in class ModeMemberImpl

addClassifierReference

public void addClassifierReference(ClassifierReference cr)
set extends reference names from ClassifierReference

Specified by:
addClassifierReference in interface PropertyAssociation

getClassifierReference

public org.eclipse.emf.common.util.EList getClassifierReference()
get bindings references from ClassifierReference

Specified by:
getClassifierReference in interface PropertyAssociation
Returns:
EList of ClassifierReference

getQualifiedName

public java.lang.String getQualifiedName()
get the qualified property name

Specified by:
getQualifiedName in interface PropertyAssociation
Returns:
String property name with the propertyset

getParsedPropertyReference

public ParsedPropertyReference getParsedPropertyReference()
get the parsed property reference

Specified by:
getParsedPropertyReference in interface PropertyAssociation
Returns:
ParsedPropertyReference property name with the propertyset

setParsedPropertyReference

public void setParsedPropertyReference(ParsedPropertyReference pr)
set the parsed property reference

Specified by:
setParsedPropertyReference in interface PropertyAssociation
Parameters:
pr - property name with the propertyset

acceptsProperty

public final boolean acceptsProperty(PropertyDefinition property)
Problem: PropertieAssociation really shouldn't be a PropertyHolder, but is because ModeMember extends PropertyHolder.

Specified by:
acceptsProperty in interface PropertyHolder
Overrides:
acceptsProperty in class ModeMemberImpl
Parameters:
property - The property definition to test.
Returns:
true if the given property applies to this element.

getValue

public final AadlPropertyValue getValue()
Description copied from interface: PropertyAssociation
Get the value from the property assocation abstracted as a AadlPropertyValue.

Specified by:
getValue in interface PropertyAssociation
Returns:
The value