uk.ac.ucl.cs.uml.jmi.Foundation.Core
Interface Enumeration

All Superinterfaces:
Classifier, DataType, Element, ExtObject, GeneralizableElement, ModelElement, Namespace, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
All Known Implementing Classes:
Enumeration_Impl

public interface Enumeration
extends DataType

In the metamodel, Enumeration defines a kind of DataType whose range is a list of predefined values, called enumeration literals. Enumeration literals can be copied, stored as values, and passed as arguments. They are ordered within their enumeration datatype. An enumeration literal can be compared for an exact match or to a range within its enumeration datatype. There is no other algebra defined on them (e.g., they cannot be added or subtracted). The run-time instances of a Primitive dataype are Values. Each such value corresponds to exactly one EnumerationLiteral defined as part of the Enumeration type itself. An Enumeration may have operations, but they must be pure functions (this is the rule for all DataType elements).


Method Summary
 Collection getLiteral()
          An ordered set of EnumationLiteral elements, each specifying a possible value of an instance of the enumeration element.
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.Classifier
allAssociations, allAttributes, allFeatures, allMethods, allOperations, associations, getAssociation, getFeature, getPowertypeRange, getSpecifiedEnd, getTypedFeature, getTypedParameter, oppositeAssociationEnds
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.GeneralizableElement
getGeneralization, getIsAbstract, getIsLeaf, getIsRoot, getSpecialization, setIsAbstract, setIsLeaf, setIsRoot
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.ModelElement
getAsArgument, getBehavior, getClientDependency, getComment, getConstraint, getContainer, getDefaultElement, getIsSpecification, getName, getNamespace, getPackage, getPresentation, getReferenceTag, getSourceFlow, getStereotype, getSupplierDependency, getTaggedValue, getTargetFlow, getTemplate, getTemplateArgument, getTemplateParameter, getVisibility, setDefaultElement, setIsSpecification, setName, setNamespace, setTemplate, setVisibility
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extDeepCopy, extEquals, extRemoveObjectListener, extValueHash, extVisit
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.Namespace
allContents, getAllSurroundingNamespaces, getAllVisibleElements, getContents, getOwnedElement
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.ModelElement
getAsArgument, getBehavior, getClientDependency, getComment, getConstraint, getContainer, getDefaultElement, getIsSpecification, getName, getNamespace, getPackage, getPresentation, getReferenceTag, getSourceFlow, getStereotype, getSupplierDependency, getTaggedValue, getTargetFlow, getTemplate, getTemplateArgument, getTemplateParameter, getVisibility, setDefaultElement, setIsSpecification, setName, setNamespace, setTemplate, setVisibility
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extDeepCopy, extEquals, extRemoveObjectListener, extValueHash, extVisit
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getLiteral

Collection getLiteral()
                      throws javax.jmi.reflect.JmiException
An ordered set of EnumationLiteral elements, each specifying a possible value of an instance of the enumeration element.

Throws:
javax.jmi.reflect.JmiException