|
||||||||||
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.PropertyConstantImpl
public class PropertyConstantImpl
An implementation of the model object 'Constant'.
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 org.eclipse.emf.common.util.EList |
constantValue
The cached value of the ' Constant Value ' containment reference list |
static java.lang.String |
copyright
|
protected boolean |
list
The cached value of the ' List ' attribute |
protected static boolean |
LIST_EDEFAULT
The default value of the ' List ' attribute |
protected PropertyConstantType |
propertyType
The cached value of the ' Property Type ' containment reference |
protected PropertyConstantType |
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 |
PropertyConstantImpl()
|
Method Summary | |
---|---|
void |
addConstantValue(PropertyValue newConstantValue)
phf: add element to multiplicity EList |
PropertyConstantType |
basicGetPropertyTypeReference()
|
org.eclipse.emf.common.notify.NotificationChain |
basicSetPropertyType(PropertyConstantType 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 |
getConstantValue()
|
ParsedPropertyReference |
getParsedPropertyReference()
get parsed property reference |
PropertySet |
getPropertySet()
Get the containing Property set. |
PropertyConstantType |
getPropertyType()
|
PropertyConstantType |
getPropertyTypeReference()
|
java.lang.String |
getQualifiedName()
get the qualified property name |
org.eclipse.emf.common.util.EList |
getSignedConstantValue(java.lang.String sign)
This is a very special purpose method: when it is known that the property constant is a non-list of numeric-type, that is the type of the property constant is aadlreal or aadlinteger, then this method applies the given sign to the single numeric value in the properyt constant and returns a new NumberValue that is the result. |
PropertyType |
getThePropertyType()
returns the property type of a property constant. |
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 |
setList(boolean newList)
phf: we want an add version for EList |
void |
setParsedPropertyReference(ParsedPropertyReference ppr)
set parsed property reference |
void |
setPropertyType(PropertyConstantType newPropertyType)
|
void |
setPropertyTypeReference(PropertyConstantType newPropertyTypeReference)
|
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 static final boolean LIST_EDEFAULT
List
' attribute.
isList()
,
Constant Field Valuesprotected boolean list
List
' attribute.
isList()
protected PropertyConstantType propertyTypeReference
Property Type Reference
' reference.
getPropertyTypeReference()
protected PropertyConstantType propertyType
Property Type
' containment reference.
getPropertyType()
protected org.eclipse.emf.common.util.EList constantValue
Constant Value
' containment reference list.
getConstantValue()
Constructor Detail |
---|
protected PropertyConstantImpl()
Method Detail |
---|
protected org.eclipse.emf.ecore.EClass eStaticClass()
eStaticClass
in class NamedElementImpl
public org.eclipse.emf.common.util.EList getConstantValue()
getConstantValue
in interface PropertyConstant
PropertyPackage.getPropertyConstant_ConstantValue()
public void addConstantValue(PropertyValue newConstantValue)
addConstantValue
in interface PropertyConstant
newConstantValue
- the value to add to 'Constant Value' containment reference list.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 boolean isList()
isList
in interface PropertyConstant
isList
in interface ReferencedProperty
PropertyConstant.setList(boolean)
,
PropertyPackage.getPropertyConstant_List()
public void setList(boolean newList)
setList
in interface PropertyConstant
newList
- the new value of the 'List' attribute.PropertyConstant.isList()
public PropertyConstantType getPropertyTypeReference()
getPropertyTypeReference
in interface PropertyConstant
PropertyConstant.setPropertyTypeReference(PropertyConstantType)
,
PropertyPackage.getPropertyConstant_PropertyTypeReference()
public PropertyConstantType basicGetPropertyTypeReference()
public void setPropertyTypeReference(PropertyConstantType newPropertyTypeReference)
setPropertyTypeReference
in interface PropertyConstant
newPropertyTypeReference
- the new value of the 'Property Type Reference' reference.PropertyConstant.getPropertyTypeReference()
public PropertyConstantType getPropertyType()
getPropertyType
in interface PropertyConstant
PropertyConstant.setPropertyType(PropertyConstantType)
,
PropertyPackage.getPropertyConstant_PropertyType()
public org.eclipse.emf.common.notify.NotificationChain basicSetPropertyType(PropertyConstantType newPropertyType, org.eclipse.emf.common.notify.NotificationChain msgs)
public void setPropertyType(PropertyConstantType newPropertyType)
setPropertyType
in interface PropertyConstant
newPropertyType
- the new value of the 'Property Type' containment reference.PropertyConstant.getPropertyType()
public java.lang.String toString()
toString
in class NamedElementImpl
public java.lang.String getQualifiedName()
getQualifiedName
in interface PropertyConstant
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)
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.public void setParsedPropertyReference(ParsedPropertyReference ppr)
setParsedPropertyReference
in interface PropertyConstant
ppr
- parsed propertry reference objectpublic ParsedPropertyReference getParsedPropertyReference()
getParsedPropertyReference
in interface PropertyConstant
public PropertyType getThePropertyType()
getThePropertyType
in interface PropertyConstant
getThePropertyType
in interface ReferencedProperty
public PropertySet getPropertySet()
getPropertySet
in interface PropertyConstant
public org.eclipse.emf.common.util.EList getSignedConstantValue(java.lang.String sign)
PropertyConstant
null
,
the result of this method is the samae as PropertyConstant.getConstantValue()
.
getSignedConstantValue
in interface PropertyConstant
sign
- The sign to apply to the value of the constant. May be null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |