Enum


Overview

The enumerated data type. Create an instance of this class to create a new named enumeration type. The names passed to the constructor are the names of the unique elements of the enumeration. On creation, the names are mapped to instances of the new enumeration type and can be referenced via their name using getElement (or ::).



Parents Class ,Classifier ,NameSpace ,IndexedContainer ,NamedElement ,DocumentedElement ,Container ,Contained ,Object ,Element


Constructors
Enum(name,names) No Documentation



Attributes
namesSeq(String)No Documentation Specified
From Class: attributes, isAbstract, constructors. From Classifier: grammar, parents, operations, constraints, default, isFinal. From NameSpace: bindings, imports. From IndexedContainer: contents. From NamedElement: name. From DocumentedElement: documentation. From Contained: owner.



Operations
add(n:Element):Element Exte-nd the behaviour for 'add' inherited from Class by taking name strings into account.
addEnumElement(name:String):ElementNo Documentation Specified
addName(name:String):ElementNo Documentation Specified
addToNames(v:Element):ElementNo Documentation Specified
default():ElementNo Documentation Specified
defaultParents():Set(Classifier)No Documentation Specified
deleteFromNames(v:Element):ElementNo Documentation Specified
deployXOCL(dir:String):ElementNo Documentation Specified
getEnumElement(name:String):ElementNo Documentation Specified
lift():PerformableNo Documentation Specified
names():ElementNo Documentation Specified
remove(n:Element):Element Exte-nd the behaviour inherited from Class by taking name strings into account.
removeEnumElement(name:String):ElementNo Documentation Specified
removeName(name:String):ElementNo Documentation Specified
resolveNameClash(name:Element,collection:Element):ElementNo Documentation Specified
setNames(v:Element):ElementNo Documentation Specified
toString():StringNo Documentation Specified
From Class: eCoreRef, eCoreParents, deployEcore, deployXOCL, writeXMLFactoryMethodBodyUpdatePossibleRef, writeXMLFactoryMethodBodyUpdateDataTypeSlot, writeXMLFactoryMethodBodyUpdateCollection, writeXMLFactoryMethodBodyUpdates, writeXMLFactoryMethodBody, writeXMLFactoryMethodArgs, writeXMLFactoryMethod, matchXMLComplexAttributes, toXMLClause, javaAttributes, deployJavaImplementsHook, deployJavaHook, deployJavaSerializer, deployJava, lift, toHTMLDoc, toHTMLDoc, populate, VMNew, setInstanceSlot, repopulate, removeConstructor, removeAttribute, remove, new, init, hasInstanceSlot, hasAttribute, getInstanceSlot, getConstructor, getAttribute, dependencies, deleteRecursive, defaultParents, allConstructors, allAttributes, addOperation, addConstructor, addAttribute, add. From Classifier: javaTypeName, grammar, addGrammar, add, target, shadowOperation, sendInstance, repopulate, removeParent, removeOperation, getOperation, classify, checkParents, availableParents, allParents, allOperations, allConstraints, addParent, addOperation, hasOperation, add, addConstraint, default, defaultParents, dependencies, getConstraint, getOperation, inheritsFrom, initialized, init, initConstraints, initOperations, initParents, invoke, mapType, new, new, remove, removeConstraint. From NameSpace: writeEcore, lift, allHTMLEntries, allHTMLPackages, toHTML, toHTMLDoc, resolveNameClash, remove, putElement, newName, names, nameChanged, initBindings, init, init, getInstantiableClasses, getContents, define, getElement, hasElement, add, addBinding, hasBinding, removeBinding, redefine. From IndexedContainer: removeContentDaemon, indices, initContents, index, init, contents, contentDaemons, addContentDaemon, add, add, remove. From NamedElement: href, toString, setName, repopulate, pathSeq, path, name, getNamedElement. From DocumentedElement: setDoc, doc, ensureDoc. From Container: untraceAll, traceAll, removeContentDaemon, remove, initContents, init, includes, deleteRecursive, contentsThat, contentsOf, contents, contentDaemons, checkConstraints, checkConstraints, allContentsThat, allContentsOf, allContents, addContentDaemon, add. From Contained: owner, deleteRecursive, allOwners, addTo, setOwner, removeFromOwner. From Object: slotMissing, slotMissing, setProperty, setHotLoad, setDaemonsActive, setDaemons, set, renameSlot, removeStructuralFeature, removeDaemonsWithTarget, removeDaemonsWithId, removeDaemonNamed, removeDaemon, machineInit, initSlots, init, hotLoaded, hotLoad, hasSlot, hasProperty, getProperty, get, hasStructuralFeature, getStructuralFeatureNames, hasDaemonWithTarget, hasDaemonWithIdAndTarget, hasDaemonWithId, hasDaemonNamed, fire, destroyDaemon, daemonWithIdAndTarget, daemonWithId, daemonNamed, daemonsActive, daemons, allDaemonsWithTarget, allDaemonsWithId, compositeValues, allCompositeValuesAndSelf, allCompositeValues, addStructuralFeature, addPersistentDaemon, addMultiDaemon, addDaemon. From Element: pprint, pprint, pprint, writeXMLFile, writeXMLFile, writeXML, lift, toSnapshot, toSnapshot, allHTMLEntries, allHTMLPackages, toHTML, writeHTML, writeHTML, writeHTMLAllEntries, writeHTMLAllPackages, writeHTMLIndex, writeHTMLOverview, yield, toString, systemId, setOf, send, save2, save, removeDaemon, removeDaemon, println, print, oclIsKindOf, oclIsTypeOf, noOperationFound, isTypeOf, isReallyKindOf, init, init, of, isKindOf, addTo, checkConstraints, copy, deleteRecursive, die, edit, equals, error, ferror, hashCode.