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

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:
PropertyDefinitionImpl

public interface PropertyDefinition
extends NamedElement, ReferencedProperty, PropertyValueHolder

A representation of the model object 'Definition'.

The following features are supported:

See Also:
PropertyPackage.getPropertyDefinition()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 void addAppliesto(PropertyOwnerCategory value)
          Adds to the list the value of the 'Appliesto' attribute list
 void addAppliesToClassifier(ClassifierValue value)
          Adds to the list the value of the 'Applies To Classifier' containment reference list
 void addDefaultpropertyValue(PropertyValue value)
          Adds to the list the value of the 'Defaultproperty Value' containment reference list
 boolean appliesTo(PropertyHolder element)
          Does this property apply to the given element?
 org.eclipse.emf.common.util.EList getAppliesto()
          Returns the value of the 'Appliesto' attribute list.
 org.eclipse.emf.common.util.EList getAppliesToClassifier()
          Returns the value of the 'Applies To Classifier' containment reference list.
 org.eclipse.emf.common.util.EList getDefaultpropertyValue()
          Returns the value of the 'Defaultproperty Value' containment reference list.
 AadlPropertyValue getDefaultValue()
          Get the default value of the property.
 ParsedPropertyReference getParsedPropertyReference()
          get the parsed property reference
 PropertySet getPropertySet()
          gets the containing property set for a named property definition
 PropertyType getPropertyType()
          Returns the value of the 'Property Type' containment reference
 PropertyType getPropertyTypeReference()
          Returns the value of the 'Property Type Reference' reference
 java.lang.String getQualifiedName()
          get the qualified property name
 PropertyType getThePropertyType()
          returns the property type of a property definition.
 boolean isAccess()
          Returns the value of the 'Access' attribute.
 boolean isHasEmptyList()
          Returns the value of the 'Has Empty List' attribute.
 boolean isInherit()
          Returns the value of the 'Inherit' attribute.
 boolean isList()
          Returns the value of the 'List' attribute.
 void setAccess(boolean value)
          Sets the value of the 'Access' attribute
 void setHasEmptyList(boolean value)
          Sets the value of the 'Has Empty List' attribute
 void setInherit(boolean value)
          Sets the value of the 'Inherit' attribute
 void setList(boolean value)
          Sets the value of the 'List' attribute
 void setParsedPropertyReference(ParsedPropertyReference pr)
          set the parsed property reference
 void setPropertyType(PropertyType value)
          Sets the value of the 'Property Type' containment reference
 void setPropertyTypeReference(PropertyType 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

getPropertyTypeReference

PropertyType getPropertyTypeReference()
Returns the value of the 'Property Type Reference' 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 Reference' reference.
See Also:
setPropertyTypeReference(PropertyType), PropertyPackage.getPropertyDefinition_PropertyTypeReference()

setPropertyTypeReference

void setPropertyTypeReference(PropertyType 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

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

If the meaning of the 'Unnamedproperty Type' containment 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(PropertyType), PropertyPackage.getPropertyDefinition_PropertyType()

setPropertyType

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

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

getDefaultpropertyValue

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

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

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

addDefaultpropertyValue

void addDefaultpropertyValue(PropertyValue value)
Adds to the list the value of the 'Defaultproperty Value' containment reference list.

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

getAppliesToClassifier

org.eclipse.emf.common.util.EList getAppliesToClassifier()
Returns the value of the 'Applies To Classifier' containment reference list. The list contents are of type ClassifierValue.

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

Returns:
the value of the 'Applies To Classifier' containment reference list.
See Also:
PropertyPackage.getPropertyDefinition_AppliesToClassifier()

addAppliesToClassifier

void addAppliesToClassifier(ClassifierValue value)
Adds to the list the value of the 'Applies To Classifier' containment reference list.

Parameters:
value - the value to add to 'Applies To Classifier' containment reference list.

isAccess

boolean isAccess()
Returns the value of the 'Access' attribute. The default value is "false".

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

Returns:
the value of the 'Access' attribute.
See Also:
setAccess(boolean), PropertyPackage.getPropertyDefinition_Access()

setAccess

void setAccess(boolean value)
Sets the value of the 'Access' attribute.

Parameters:
value - the new value of the 'Access' attribute.
See Also:
isAccess()

isInherit

boolean isInherit()
Returns the value of the 'Inherit' attribute. The default value is "false".

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), PropertyPackage.getPropertyDefinition_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()

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.getPropertyDefinition_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()

getAppliesto

org.eclipse.emf.common.util.EList getAppliesto()
Returns the value of the 'Appliesto' attribute list. The list contents are of type PropertyOwnerCategory. The literals are from the enumeration PropertyOwnerCategory.

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

Returns:
the value of the 'Appliesto' attribute list.
See Also:
PropertyOwnerCategory, PropertyPackage.getPropertyDefinition_Appliesto()

addAppliesto

void addAppliesto(PropertyOwnerCategory value)
Adds to the list the value of the 'Appliesto' attribute list.

Parameters:
value - the value to add to 'Appliesto' attribute list.

isHasEmptyList

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

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

Returns:
the value of the 'Has Empty List' attribute.
See Also:
setHasEmptyList(boolean), PropertyPackage.getPropertyDefinition_HasEmptyList()

setHasEmptyList

void setHasEmptyList(boolean value)
Sets the value of the 'Has Empty List' attribute.

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

getQualifiedName

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

Returns:
String property name with the propertyset

getParsedPropertyReference

ParsedPropertyReference getParsedPropertyReference()
get the parsed property reference

Returns:
ParsedPropertyReference property name with the propertyset

setParsedPropertyReference

void setParsedPropertyReference(ParsedPropertyReference pr)
set the parsed property reference

Parameters:
pr - property name with the propertyset

appliesTo

boolean appliesTo(PropertyHolder element)
Does this property apply to the given element?

Parameters:
element - The element to test.
Returns:
Whether this property applies to the given element.

getDefaultValue

AadlPropertyValue getDefaultValue()
Get the default value of the property. This differs from getDefaultpropertyValue() in several ways:
  1. It returns an AadlPropertyValue object
  2. It incorporates the fact that a list-valued property has the empty list as it's default value if no other value is provided.

Returns:
The default value of the property.

getPropertySet

PropertySet getPropertySet()
gets the containing property set for a named property definition

Returns:
PropertySet

getThePropertyType

PropertyType getThePropertyType()
returns the property type of a property definition. 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