edu.cmu.sei.aadl.model.property
Interface PropertyConstant

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier, PropertyValueHolder, ReferencedProperty
All Known Implementing Classes:
PropertyConstantImpl

public interface PropertyConstant
extends NamedElement, ReferencedProperty, PropertyValueHolder

A representation of the model object 'Constant'.

The following features are supported:

See Also:
PropertyPackage.getPropertyConstant()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 void addConstantValue(PropertyValue value)
          Adds to the list the value of the 'Constant Value' containment reference list
 org.eclipse.emf.common.util.EList getConstantValue()
          Returns the value of the 'Constant Value' containment reference list.
 ParsedPropertyReference getParsedPropertyReference()
          get parsed property reference
 PropertySet getPropertySet()
          Get the containing property set
 PropertyConstantType getPropertyType()
          Returns the value of the 'Property Type' containment reference
 PropertyConstantType getPropertyTypeReference()
          Returns the value of the 'Property Type Reference' reference
 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()
          Returns the value of the 'List' attribute.
 void setList(boolean value)
          Sets the value of the 'List' attribute
 void setParsedPropertyReference(ParsedPropertyReference ppr)
          set parsed property reference
 void setPropertyType(PropertyConstantType value)
          Sets the value of the 'Property Type' containment reference
 void setPropertyTypeReference(PropertyConstantType value)
          Sets the value of the 'Property Type Reference' reference
 
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 edu.cmu.sei.aadl.model.property.ReferencedProperty
evaluate, preEvaluate
 

Field Detail

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getConstantValue

org.eclipse.emf.common.util.EList getConstantValue()
Returns the value of the 'Constant Value' containment reference list. The list contents are of type PropertyValue.

If the meaning of the 'Constant Value' containment reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Constant Value' containment reference list.
See Also:
PropertyPackage.getPropertyConstant_ConstantValue()

addConstantValue

void addConstantValue(PropertyValue value)
Adds to the list the value of the 'Constant Value' containment reference list.

Parameters:
value - the value to add to 'Constant Value' containment reference list.

getSignedConstantValue

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. If the property constant has the wrong type or the sign is null, the result of this method is the samae as getConstantValue().

Parameters:
sign - The sign to apply to the value of the constant. May be null.
Returns:
See method description.

isList

boolean isList()
Returns the value of the 'List' attribute. The default value is "false".

If the meaning of the 'List' attribute isn't clear, there really should be more of a description here...

Specified by:
isList in interface ReferencedProperty
Returns:
the value of the 'List' attribute.
See Also:
setList(boolean), PropertyPackage.getPropertyConstant_List()

setList

void setList(boolean value)
Sets the value of the 'List' attribute.

Parameters:
value - the new value of the 'List' attribute.
See Also:
isList()

getPropertyTypeReference

PropertyConstantType getPropertyTypeReference()
Returns the value of the 'Property Type Reference' reference.

If the meaning of the 'Property Type Reference' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Property Type Reference' reference.
See Also:
setPropertyTypeReference(PropertyConstantType), PropertyPackage.getPropertyConstant_PropertyTypeReference()

setPropertyTypeReference

void setPropertyTypeReference(PropertyConstantType value)
Sets the value of the 'Property Type Reference' reference.

Parameters:
value - the new value of the 'Property Type Reference' reference.
See Also:
getPropertyTypeReference()

getPropertyType

PropertyConstantType getPropertyType()
Returns the value of the 'Property Type' containment reference.

If the meaning of the 'Property Type' reference isn't clear, there really should be more of a description here...

Returns:
the value of the 'Property Type' containment reference.
See Also:
setPropertyType(PropertyConstantType), PropertyPackage.getPropertyConstant_PropertyType()

setPropertyType

void setPropertyType(PropertyConstantType value)
Sets the value of the 'Property Type' containment reference.

Parameters:
value - the new value of the 'Property Type' containment reference.
See Also:
getPropertyType()

getQualifiedName

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

Returns:
String property name with the propertyset

getPropertySet

PropertySet getPropertySet()
Get the containing property set

Returns:
PropertySet

setParsedPropertyReference

void setParsedPropertyReference(ParsedPropertyReference ppr)
set parsed property reference

Parameters:
ppr - parsed propertry reference object

getParsedPropertyReference

ParsedPropertyReference getParsedPropertyReference()
get parsed property reference

Returns:
ppr parsed propertry reference object

getThePropertyType

PropertyType getThePropertyType()
returns the property type of a property constant. This will be either a named property type that is referenced or an unnamed property type that is contained

Specified by:
getThePropertyType in interface ReferencedProperty
Returns:
PropertyType