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

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
Aadlboolean, Aadlinteger, Aadlreal, Aadlstring, ClassifierType, EnumType, NumberType, PropertyConstantType, RangeType, ReferenceType, UnitsType
All Known Implementing Classes:
AadlbooleanImpl, AadlintegerImpl, AadlrealImpl, AadlstringImpl, ClassifierTypeImpl, EnumTypeImpl, NumberTypeImpl, PropertyConstantTypeImpl, PropertyTypeImpl, RangeTypeImpl, ReferenceTypeImpl, UnitsTypeImpl

public interface PropertyType
extends NamedElement

A representation of the model object 'Type'.

See Also:
PropertyPackage.getPropertyType()

Field Summary
static java.lang.String copyright
           
static java.lang.String VALUE_OKAY
          Constant for containsValue(boolean, PropertyValue) indicating that the given value is legal.
 
Method Summary
 java.lang.String acceptsValuesOfType(PropertyType pt)
          Test whether this type accepts values of the given type.
 java.lang.String containsValue(boolean isList, PropertyValue pv)
          Test whether the given value (property expression) is a legal value of this type.
 PropertySet getPropertySet()
          gets the containing property set for a named property type or an unnamed property type in a property definition
 java.lang.String getQualifiedName()
          get the qualified name including the property set
 
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
 

Field Detail

VALUE_OKAY

static final java.lang.String VALUE_OKAY
Constant for containsValue(boolean, PropertyValue) indicating that the given value is legal.


copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getQualifiedName

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


getPropertySet

PropertySet getPropertySet()
gets the containing property set for a named property type or an unnamed property type in a property definition

Returns:
PropertySet

containsValue

java.lang.String containsValue(boolean isList,
                               PropertyValue pv)
Test whether the given value (property expression) is a legal value of this type. In general, list values can refer to both list and non-list values, but non-list types can only refer to non-list values. (This method is probably badly named, because when isList is true, the test is really whether the given value can be an element of a list of the given type.)

Parameters:
isList - If true we should consider the type as a list, if false we should consider the type as a scaler.
pv - The property value to test
Returns:
VALUE_OKAYwhen pv is a legal value, otherwise it returns a string containing an error message.

acceptsValuesOfType

java.lang.String acceptsValuesOfType(PropertyType pt)
Test whether this type accepts values of the given type.

Parameters:
pt - The property type to test
Returns:
VALUE_OKAYwhen pt is acceptable, otherwise it returns a string containing an error message.