UML.Semantic.Foundation.DataTypes
Class Enumeration

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Namespace
              |
              +--UML.Semantic.Foundation.Core.GeneralizableElement
                    |
                    +--UML.Semantic.Foundation.Core.Classifier
                          |
                          +--UML.Semantic.Foundation.Core.DataType
                                |
                                +--UML.Semantic.Foundation.DataTypes.Enumeration
All Implemented Interfaces:
Element, ElementAtt, LinkAtt
Direct Known Subclasses:
AggregationKind, CallConcurrencyKind, ChangeableKind, MessageDirectionKind, OperationDirectionKind, ParameterDirectionKind, PseudostateKind, ScopeKind, SynchronousKind, VisibilityKind

public class Enumeration
extends DataType

In the metamodel Enumeration defines a special kind of DataType whose range is a list of definable values, called EnumerationLiterals.

See Also:
EnumerationLiteral

Constructor Summary
Enumeration(java.lang.String literals)
          Constructs a new enumeration from given literals string.
 
Method Summary
 java.lang.String getKind()
          Returns the currently assigned kind.
 java.lang.String getLiterals()
          Returns a string of comma-separated literal values.
 void setKind(java.lang.String mode)
          Sets the enumeration kind to the given value.
 
Methods inherited from class UML.Semantic.Foundation.Core.DataType
check
 
Methods inherited from class UML.Semantic.Foundation.Core.Classifier
add, add, add, allAssociationEnd, allAssociations, allAttributes, allFeatures, allMethods, allOperations, allOppositeAssociationEnd, getAssociationEnd, getAssociations, getAttribute, getAttribute, getAttributeCount, getFeature, getFeature, getInfo, getOperation, getOperation, getOperationCount, getSpecification, inheritedAssociationEnd, inheritedAssociations, inheritedAttributes, inheritedOperations, inheritedOppositeAssociationEnd, oppositeAssociationEnd, setRealization, setSpecification
 
Methods inherited from class UML.Semantic.Foundation.Core.GeneralizableElement
allOwnedElement, allSupertype, getGeneralization, getIsAbstract, getIsLeaf, getIsRoot, getSpecialization, getSupertype, inheritedOwnedElement, inheritedSupertype, setIsAbstract, setIsLeaf, setIsRoot
 
Methods inherited from class UML.Semantic.Foundation.Core.Namespace
add, allContents, allContents, getOwnedElement, subContents
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Enumeration

public Enumeration(java.lang.String literals)
Constructs a new enumeration from given literals string.

Method Detail

setKind

public void setKind(java.lang.String mode)
Sets the enumeration kind to the given value.


getKind

public java.lang.String getKind()
Returns the currently assigned kind.

Returns:
the assigned kind.

getLiterals

public java.lang.String getLiterals()
Returns a string of comma-separated literal values.

Returns:
The string of literals.