edu.cmu.sei.aadl.aadl2
Interface Property

All Superinterfaces:
AObject, BasicProperty, Element, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier, TypedElement
All Known Implementing Classes:
PropertyImpl

public interface Property
extends BasicProperty

A representation of the model object 'Property Definition'.

The following features are supported:

See Also:
Aadl2Package.getProperty()

Field Summary
 
Fields inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
copyright
 
Method Summary
 PropertyOwner createAppliesTo(org.eclipse.emf.ecore.EClass eClass)
          Creates a new PropertyOwner and appends it to the 'Applies To' containment reference list
 PropertyExpression createDefaultValue(org.eclipse.emf.ecore.EClass eClass)
          Creates a new PropertyExpression and sets the 'Default Value' containment reference
 EvaluatedProperty evaluate(EvaluationContext ctx)
          Evaluate a referenced property.
 EvaluatedProperty evaluateDefault(EvaluationContext ctx)
           
 org.eclipse.emf.common.util.EList<Classifier> getAppliesToClassifiers()
          Returns the value of the 'Applies To Classifier' reference list.
 org.eclipse.emf.common.util.EList<MetaclassReference> getAppliesToMetaclasses()
          Returns the value of the 'Applies To Metaclass' reference list.
 org.eclipse.emf.common.util.EList<PropertyOwner> getAppliesTos()
          Returns the value of the 'Applies To' containment reference list.
 PropertyExpression getDefaultValue()
          Returns the value of the 'Default Value' containment reference
 boolean isEmptyListDefault()
          Returns the value of the 'Empty List Default' attribute
 boolean isInherit()
          Returns the value of the 'Inherit' attribute
 void setDefaultValue(PropertyExpression value)
          Sets the value of the 'Default Value' containment reference
 void setEmptyListDefault(boolean value)
          Sets the value of the 'Empty List Default' attribute
 void setInherit(boolean value)
          Sets the value of the 'Inherit' attribute
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.BasicProperty
createOwnedType, getList, getOwnedType, isList, setList, setOwnedType
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.TypedElement
getType, setType
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.NamedElement
acceptsProperty, allNamespaces, checkPropertyAssociation, createOwnedPropertyAssociation, getName, getNamespace, getOwnedPropertyAssociations, getPropertyValue, getPropertyValueInternal, getPropertyValueList, getQualifiedName, getSimplePropertyValue, has_no_qualified_name, has_qualified_name, hasName, isDistinguishableFrom, qualifiedName, removePropertyAssociations, removePropertyAssociations, separator, setName, setPropertyValue, setPropertyValue, setPropertyValue
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.Element
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
 
Methods inherited from interface edu.cmu.sei.aadl.aadl2.parsesupport.AObject
getLocationReference, 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
 

Method Detail

isInherit

boolean isInherit()
Returns the value of the 'Inherit' attribute.

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

Returns:
the value of the 'Inherit' attribute.
See Also:
setInherit(boolean), Aadl2Package.getProperty_Inherit()

setInherit

void setInherit(boolean value)
Sets the value of the 'Inherit' attribute.

Parameters:
value - the new value of the 'Inherit' attribute.
See Also:
isInherit()

getDefaultValue

PropertyExpression getDefaultValue()
Returns the value of the 'Default Value' containment reference.

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

Returns:
the value of the 'Default Value' containment reference.
See Also:
setDefaultValue(PropertyExpression), Aadl2Package.getProperty_DefaultValue()

setDefaultValue

void setDefaultValue(PropertyExpression value)
Sets the value of the 'Default Value' containment reference.

Parameters:
value - the new value of the 'Default Value' containment reference.
See Also:
getDefaultValue()

getAppliesTos

org.eclipse.emf.common.util.EList<PropertyOwner> getAppliesTos()
Returns the value of the 'Applies To' containment reference list. The list contents are of type PropertyOwner.

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

Returns:
the value of the 'Applies To' containment reference list.
See Also:
Aadl2Package.getProperty_AppliesTo()

createAppliesTo

PropertyOwner createAppliesTo(org.eclipse.emf.ecore.EClass eClass)
Creates a new PropertyOwner and appends it to the 'Applies To' containment reference list.

Parameters:
eClass - The Ecore class of the PropertyOwner to create.
Returns:
The new PropertyOwner.
See Also:
getAppliesTos()

isEmptyListDefault

boolean isEmptyListDefault()
Returns the value of the 'Empty List Default' attribute.

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

Returns:
the value of the 'Empty List Default' attribute.
See Also:
setEmptyListDefault(boolean), Aadl2Package.getProperty_EmptyListDefault()

setEmptyListDefault

void setEmptyListDefault(boolean value)
Sets the value of the 'Empty List Default' attribute.

Parameters:
value - the new value of the 'Empty List Default' attribute.
See Also:
isEmptyListDefault()

createDefaultValue

PropertyExpression createDefaultValue(org.eclipse.emf.ecore.EClass eClass)
Creates a new PropertyExpression and sets the 'Default Value' containment reference.

Parameters:
eClass - The Ecore class of the PropertyExpression to create.
Returns:
The new PropertyExpression.
See Also:
getDefaultValue()

getAppliesToMetaclasses

org.eclipse.emf.common.util.EList<MetaclassReference> getAppliesToMetaclasses()
Returns the value of the 'Applies To Metaclass' reference list. The list contents are of type MetaclassReference.

If the meaning of the 'Applies To Metaclass' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Applies To Metaclass' reference list.
See Also:
Aadl2Package.getProperty_AppliesToMetaclass()

getAppliesToClassifiers

org.eclipse.emf.common.util.EList<Classifier> getAppliesToClassifiers()
Returns the value of the 'Applies To Classifier' reference list. The list contents are of type Classifier.

If the meaning of the 'Applies To Classifier' reference list isn't clear, there really should be more of a description here...

Returns:
the value of the 'Applies To Classifier' reference list.
See Also:
Aadl2Package.getProperty_AppliesToClassifier()

evaluate

EvaluatedProperty evaluate(EvaluationContext ctx)
Evaluate a referenced property.

Returns:
The evaluated property value: either null, a PropertyValue, or a list of PropertyValues. If the evaluation is trivial, then this will be the same as the receiver.
Throws:
InvalidModelException - Thrown if there is a problem with the model that prevents the property value from being evaluated.

evaluateDefault

EvaluatedProperty evaluateDefault(EvaluationContext ctx)