Class OrderedEnum
java.lang.Object
net.ssehub.easy.varModel.model.ModelElement
net.ssehub.easy.varModel.model.ContainableModelElement
net.ssehub.easy.varModel.model.datatypes.CustomDatatype
net.ssehub.easy.varModel.model.datatypes.Enum
net.ssehub.easy.varModel.model.datatypes.OrderedEnum
- All Implemented Interfaces:
IDatatype,IDatatypeVisitable,IModelElement
Enumerations allow the definition of sets of named values.
- Author:
- heiko beck, Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final DelegatingTypestatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final Operationstatic final IDatatypeThis constant represents the common type of all enums.Fields inherited from class net.ssehub.easy.varModel.model.datatypes.Enum
ASSIGNMENT, EQUALS, IF_DEFINED, IS_DEFINED, NOTEQUALS, NOTEQUALS_ALIAS, ORDINAL, TYPE_OF -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCreates the singleton instance forTYPE.OrderedEnum(String name, ModelElement parent) Constructor for an empty enum. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IDatatypeVisitor visitor) Accepts a specialized visitor for creating a textual representation of the identity of this type.voidaccept(IModelVisitor visitor) Accept method for the visitor.booleanReturns whether this enum is ordered.Methods inherited from class net.ssehub.easy.varModel.model.datatypes.Enum
add, get, getLiteral, getLiteralByOrdinal, getLiteralCount, getLiteralIndex, hasMethods inherited from class net.ssehub.easy.varModel.model.datatypes.CustomDatatype
getGenericType, getGenericTypeCount, getOperation, getOperationCount, getType, getTypeClass, isAssignableFrom, isPrimitive, isPseudoType, isTypeMethods inherited from class net.ssehub.easy.varModel.model.ContainableModelElement
getNameSpace, getParent, getProject, getQualifiedName, getTopLevelParent, isTopLevel, setParentMethods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getUniqueName, isTransparent, propagateAttribute, setComment, setName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ssehub.easy.varModel.model.datatypes.IDatatype
getName, getNameSpace, getQualifiedName, getUniqueName
-
Field Details
-
DTYPE
-
TYPE
This constant represents the common type of all enums. Each specific enum type is assignable to this type. -
GREATER
-
LESS
-
GREATER_EQUALS
-
LESS_EQUALS
-
MIN
-
MAX
-
-
Constructor Details
-
OrderedEnum
private OrderedEnum()Creates the singleton instance forTYPE. -
OrderedEnum
Constructor for an empty enum.- Parameters:
name- Name of the enumparent- the object, in which this specific one is embedded
-
-
Method Details
-
isOrdered
public boolean isOrdered()Returns whether this enum is ordered. -
accept
Accept method for the visitor.- Specified by:
acceptin interfaceIModelElement- Overrides:
acceptin classEnum- Parameters:
visitor- The visitor, which should process this model element.
-
accept
Description copied from interface:IDatatypeVisitableAccepts a specialized visitor for creating a textual representation of the identity of this type.- Specified by:
acceptin interfaceIDatatypeVisitable- Overrides:
acceptin classEnum- Parameters:
visitor- the visitor to accept
-