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

All Superinterfaces:
AObject, org.eclipse.emf.ecore.EObject, org.eclipse.core.runtime.IAdaptable, NamedElement, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
UnitLiteral
All Known Implementing Classes:
EnumLiteralImpl, UnitLiteralImpl

public interface EnumLiteral
extends NamedElement

A representation of the model object 'Enum Literal'.

See Also:
PropertyPackage.getEnumLiteral()

Field Summary
static java.lang.String copyright
           
 
Method Summary
 int compare(EnumLiteral other)
          Compare two enum literals, but only if they come from the same enumeration type.
 
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

copyright

static final java.lang.String copyright

See Also:
Constant Field Values
Method Detail

compare

int compare(EnumLiteral other)
Compare two enum literals, but only if they come from the same enumeration type.

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