|
||||||||||
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.property.impl.PropertyDefinitionImpl
public class PropertyDefinitionImpl
An implementation of the model object 'Definition'.
The following features are implemented:
Property Type Reference
Property Type
Defaultproperty Value
Applies To Classifier
Access
Inherit
List
Appliesto
Has Empty List
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 org.eclipse.emf.common.util.EList |
appliesto
The cached value of the ' Appliesto ' attribute list |
protected org.eclipse.emf.common.util.EList |
appliesToClassifier
The cached value of the ' Applies To Classifier ' containment reference list |
static java.lang.String |
copyright
|
protected org.eclipse.emf.common.util.EList |
defaultpropertyValue
The cached value of the ' Defaultproperty Value ' containment reference list |
protected static boolean |
HAS_EMPTY_LIST_EDEFAULT
The default value of the ' Has Empty List ' attribute |
protected boolean |
hasEmptyList
The cached value of the ' Has Empty List ' attribute |
protected boolean |
inherit
The cached value of the ' Inherit ' attribute |
protected static boolean |
INHERIT_EDEFAULT
The default value of the ' Inherit ' attribute |
protected boolean |
list
The cached value of the ' List ' attribute |
protected static boolean |
LIST_EDEFAULT
The default value of the ' List ' attribute |
protected ParsedPropertyReference |
parsedPropertyReference
the parsed proeprty reference names |
protected PropertyType |
propertyType
The cached value of the ' Property Type ' containment reference |
protected PropertyType |
propertyTypeReference
The cached value of the ' Property Type Reference ' reference |
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 |
PropertyDefinitionImpl()
|
Method Summary | |
---|---|
void |
addAppliesto(PropertyOwnerCategory newAppliesto)
phf: add element to multiplicity EList |
void |
addAppliesToClassifier(ClassifierValue newAppliesToClassifier)
phf: add element to multiplicity EList |
void |
addDefaultpropertyValue(PropertyValue newDefaultpropertyValue)
phf: add element to multiplicity EList |
boolean |
appliesTo(PropertyHolder element)
Does this property apply to the given element? |
PropertyType |
basicGetPropertyTypeReference()
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetPropertyType(PropertyType newPropertyType,
org.eclipse.emf.common.notify.NotificationChain msgs)
|
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)
|
AadlPropertyValue |
evaluate(java.lang.String sign,
java.util.Map modes,
PropertyHolder context)
Evaluate a referenced property. |
org.eclipse.emf.common.util.EList |
getAppliesto()
|
org.eclipse.emf.common.util.EList |
getAppliesToClassifier()
|
org.eclipse.emf.common.util.EList |
getDefaultpropertyValue()
|
AadlPropertyValue |
getDefaultValue()
Get the default value of the property. |
ParsedPropertyReference |
getParsedPropertyReference()
returns parsed property reference object |
PropertySet |
getPropertySet()
gets the containing property set for a named property definition |
PropertyType |
getPropertyType()
|
PropertyType |
getPropertyTypeReference()
|
java.lang.String |
getQualifiedName()
get the qualified property name |
PropertyType |
getThePropertyType()
returns the property type of a property definition. |
boolean |
isAccess()
|
boolean |
isHasEmptyList()
|
boolean |
isInherit()
|
boolean |
isList()
|
void |
preEvaluate(PropertyHolder context,
java.util.Set reqModeContexts)
Pre-evaluate a property value to determine which ComponentImpls have modes that can affect the property value. |
void |
setAccess(boolean newAccess)
phf: we want an add version for EList |
void |
setHasEmptyList(boolean newHasEmptyList)
|
void |
setInherit(boolean newInherit)
phf: we want an add version for EList |
void |
setList(boolean newList)
phf: we want an add version for EList |
void |
setParsedPropertyReference(ParsedPropertyReference pr)
sets parsed names for property reference |
void |
setPropertyType(PropertyType newPropertyType)
phf: we want an add version for EList |
void |
setPropertyTypeReference(PropertyType newPropertyTypeReference)
phf: we want an add version for EList |
java.lang.String |
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, 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.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 |
---|
public static final java.lang.String copyright
protected PropertyType propertyTypeReference
Property Type Reference
' reference.
getPropertyTypeReference()
protected ParsedPropertyReference parsedPropertyReference
protected PropertyType propertyType
Property Type
' containment reference.
getPropertyType()
protected org.eclipse.emf.common.util.EList defaultpropertyValue
Defaultproperty Value
' containment reference list.
getDefaultpropertyValue()
protected org.eclipse.emf.common.util.EList appliesToClassifier
Applies To Classifier
' containment reference list.
getAppliesToClassifier()
protected static final boolean ACCESS_EDEFAULT
Access
' attribute.
isAccess()
,
Constant Field Valuesprotected boolean access
Access
' attribute.
isAccess()
protected static final boolean INHERIT_EDEFAULT
Inherit
' attribute.
isInherit()
,
Constant Field Valuesprotected boolean inherit
Inherit
' attribute.
isInherit()
protected static final boolean LIST_EDEFAULT
List
' attribute.
isList()
,
Constant Field Valuesprotected boolean list
List
' attribute.
isList()
protected org.eclipse.emf.common.util.EList appliesto
Appliesto
' attribute list.
getAppliesto()
protected static final boolean HAS_EMPTY_LIST_EDEFAULT
Has Empty List
' attribute.
isHasEmptyList()
,
Constant Field Valuesprotected boolean hasEmptyList
Has Empty List
' attribute.
isHasEmptyList()
Constructor Detail |
---|
protected PropertyDefinitionImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class NamedElementImpl
public PropertyType getPropertyTypeReference()
getPropertyTypeReference
in interface PropertyDefinition
PropertyDefinition.setPropertyTypeReference(PropertyType)
,
PropertyPackage.getPropertyDefinition_PropertyTypeReference()
public PropertyType basicGetPropertyTypeReference()
public void setPropertyTypeReference(PropertyType newPropertyTypeReference)
setPropertyTypeReference
in interface PropertyDefinition
newPropertyTypeReference
- the new value of the 'Property Type Reference' reference.PropertyDefinition.getPropertyTypeReference()
public PropertyType getPropertyType()
getPropertyType
in interface PropertyDefinition
PropertyDefinition.setPropertyType(PropertyType)
,
PropertyPackage.getPropertyDefinition_PropertyType()
public org.eclipse.emf.common.notify.NotificationChain basicSetPropertyType(PropertyType newPropertyType, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setPropertyType(PropertyType newPropertyType)
setPropertyType
in interface PropertyDefinition
newPropertyType
- the new value of the 'Property Type' containment reference.PropertyDefinition.getPropertyType()
public org.eclipse.emf.common.util.EList getDefaultpropertyValue()
getDefaultpropertyValue
in interface PropertyDefinition
PropertyPackage.getPropertyDefinition_DefaultpropertyValue()
public void addDefaultpropertyValue(PropertyValue newDefaultpropertyValue)
addDefaultpropertyValue
in interface PropertyDefinition
newDefaultpropertyValue
- the value to add to 'Defaultproperty Value' containment reference list.public org.eclipse.emf.common.util.EList getAppliesToClassifier()
getAppliesToClassifier
in interface PropertyDefinition
PropertyPackage.getPropertyDefinition_AppliesToClassifier()
public void addAppliesToClassifier(ClassifierValue newAppliesToClassifier)
addAppliesToClassifier
in interface PropertyDefinition
newAppliesToClassifier
- the value to add to 'Applies To Classifier' containment reference list.public boolean isAccess()
isAccess
in interface PropertyDefinition
PropertyDefinition.setAccess(boolean)
,
PropertyPackage.getPropertyDefinition_Access()
public void setAccess(boolean newAccess)
setAccess
in interface PropertyDefinition
newAccess
- the new value of the 'Access' attribute.PropertyDefinition.isAccess()
public boolean isInherit()
isInherit
in interface PropertyDefinition
PropertyDefinition.setInherit(boolean)
,
PropertyPackage.getPropertyDefinition_Inherit()
public void setInherit(boolean newInherit)
setInherit
in interface PropertyDefinition
newInherit
- the new value of the 'Inherit' attribute.PropertyDefinition.isInherit()
public boolean isList()
isList
in interface PropertyDefinition
isList
in interface ReferencedProperty
PropertyDefinition.setList(boolean)
,
PropertyPackage.getPropertyDefinition_List()
public void setList(boolean newList)
setList
in interface PropertyDefinition
newList
- the new value of the 'List' attribute.PropertyDefinition.isList()
public org.eclipse.emf.common.util.EList getAppliesto()
getAppliesto
in interface PropertyDefinition
PropertyOwnerCategory
,
PropertyPackage.getPropertyDefinition_Appliesto()
public void addAppliesto(PropertyOwnerCategory newAppliesto)
addAppliesto
in interface PropertyDefinition
newAppliesto
- the value to add to 'Appliesto' attribute list.public boolean isHasEmptyList()
isHasEmptyList
in interface PropertyDefinition
PropertyDefinition.setHasEmptyList(boolean)
,
PropertyPackage.getPropertyDefinition_HasEmptyList()
public void setHasEmptyList(boolean newHasEmptyList)
setHasEmptyList
in interface PropertyDefinition
newHasEmptyList
- the new value of the 'Has Empty List' attribute.PropertyDefinition.isHasEmptyList()
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 org.eclipse.emf.ecore.impl.BasicEObjectImpl
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class NamedElementImpl
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 NamedElementImpl
public java.lang.String toString()
toString
in class NamedElementImpl
public java.lang.String getQualifiedName()
getQualifiedName
in interface PropertyDefinition
public void setParsedPropertyReference(ParsedPropertyReference pr)
setParsedPropertyReference
in interface PropertyDefinition
pr
- parsed property reference objectpublic ParsedPropertyReference getParsedPropertyReference()
getParsedPropertyReference
in interface PropertyDefinition
public final AadlPropertyValue evaluate(java.lang.String sign, java.util.Map modes, PropertyHolder context) throws InvalidModelException
ReferencedProperty
evaluate
in interface ReferencedProperty
sign
- the referenceSign
value from the containing
PropertyReference.modes
- The mode in which to look up the value; a mapping from
component impls to modescontext
- The context in which to look up any property value references.
null
, a
PropertyValue, or a list of PropertyValues. If the evaluation is
trivial, then this will be the same as the receiver.
InvalidModelException
- Thrown if there is a problem with the
model that prevents the prpoerty value from being evaluated.public final void preEvaluate(PropertyHolder context, java.util.Set reqModeContexts) throws InvalidModelException
ReferencedProperty
preEvaluate
in interface ReferencedProperty
context
- The context in which the property value is to be looked up.reqModeContexts
- The working set of component implementations whose modes
affect the value of the property. This set is modified as
a side-effect of this method.
InvalidModelException
- Thrown if there is a problem with the
model that prevents the prpoerty value from being pre-evaluated.public final boolean appliesTo(PropertyHolder element)
PropertyDefinition
appliesTo
in interface PropertyDefinition
element
- The element to test.
public final AadlPropertyValue getDefaultValue()
PropertyDefinition
PropertyDefinition.getDefaultpropertyValue()
in several ways:
AadlPropertyValue
object
getDefaultValue
in interface PropertyDefinition
public PropertySet getPropertySet()
getPropertySet
in interface PropertyDefinition
public PropertyType getThePropertyType()
getThePropertyType
in interface PropertyDefinition
getThePropertyType
in interface ReferencedProperty
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |