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

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, org.eclipse.emf.common.notify.Notifier, PropertyValue
All Known Implementing Classes:
EnumValueImpl

public interface EnumValue
extends PropertyValue

A representation of the model object 'Enum Value'.

The following features are supported:

See Also:
PropertyPackage.getEnumValue()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 int compare(EnumValue other)
          Compare two enumeration values.
 EnumLiteral getEnumLiteral()
          Returns the value of the 'Enum Literal' reference
 ParsedPropertyReference getParsedEnumLiteralReference()
          returns parsed Enum literal reference object
 void setEnumLiteral(EnumLiteral value)
          Sets the value of the 'Enum Literal' reference
 void setEnumLiteralName(java.lang.String name)
          sets the parsed enum literalname
 void setParsedEnumLiteral(java.lang.String pr, java.lang.String file, int line)
          sets parsed name of Enumliteral
 void setParsedEnumLiteralReference(ParsedPropertyReference pr)
          sets parsed names for Enum literal reference
 
Methods inherited from interface edu.cmu.sei.aadl.model.property.PropertyValue
evaluate, getValueAsString, instantiate, preEvaluate
 
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

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

getEnumLiteral

EnumLiteral getEnumLiteral()
Returns the value of the 'Enum Literal' reference.

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

Returns:
the value of the 'Enum Literal' reference.
See Also:
setEnumLiteral(EnumLiteral), PropertyPackage.getEnumValue_EnumLiteral()

setEnumLiteral

void setEnumLiteral(EnumLiteral value)
Sets the value of the 'Enum Literal' reference.

Parameters:
value - the new value of the 'Enum Literal' reference.
See Also:
getEnumLiteral()

setEnumLiteralName

void setEnumLiteralName(java.lang.String name)
sets the parsed enum literalname

Parameters:
name -

setParsedEnumLiteralReference

void setParsedEnumLiteralReference(ParsedPropertyReference pr)
sets parsed names for Enum literal reference

Parameters:
pr - parsed property reference object

setParsedEnumLiteral

void setParsedEnumLiteral(java.lang.String pr,
                          java.lang.String file,
                          int line)
sets parsed name of Enumliteral

Parameters:
pr - parsed of Enumliteral as string

getParsedEnumLiteralReference

ParsedPropertyReference getParsedEnumLiteralReference()
returns parsed Enum literal reference object

Returns:
ParsedPropertyReference

compare

int compare(EnumValue other)
Compare two enumeration values.

Parameters:
other - The other enumeration value
Returns:
A value less than, equal to, or greater than zero depending on whether this value comes before, is equal to, or comes after other, respectively.
Throws:
java.lang.ClassCastException - Thrown if the two values represent literals that are not from the same enumeration type.