org.eclipse.ocl.examples.pivot
Interface Enumeration

All Superinterfaces:
Class, DataType, Element, org.eclipse.emf.ecore.EObject, java.lang.Iterable<Class>, MonikeredElement, Nameable, NamedElement, Namespace, org.eclipse.emf.common.notify.Notifier, ParameterableElement, PivotObject, TemplateableElement, Type, Visitable
All Known Implementing Classes:
EnumerationImpl

public interface Enumeration
extends DataType

A representation of the model object 'Enumeration'. An enumeration defines a set of literals that can be used as its values.

The following features are supported:

See Also:
PivotPackage.getEnumeration()
Generated
Model

Method Summary
 EnumerationLiteral createOwnedLiteral()
          Creates a new EnumerationLiteral and appends it to the 'Owned Literal' containment reference list.
 org.eclipse.emf.common.util.EList<EnumerationLiteral> getOwnedLiterals()
          Returns the value of the 'Owned Literal' containment reference list.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.DataType
getBehavioralType, isSerializable, setBehavioralType, setIsSerializable
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Class
createOwnedAttribute, createOwnedOperation, createOwnedOperation, getOwnedAttributes, getOwnedOperations, getSubClasses, getSuperClasses, isAbstract, isInterface, setIsAbstract, setIsInterface
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Type
getInstanceClassName, getPackage, setInstanceClassName, setPackage
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, getUnspecializedElement, isTemplate, parameterableElements, setOwnedTemplateSignature, setUnspecializedElement
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.ParameterableElement
getOwningTemplateParameter, getTemplateParameter, isTemplateParameter, setOwningTemplateParameter, setTemplateParameter
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.NamedElement
createOwnedAnnotation, createOwnedRule, getName, getOwnedAnnotations, getOwnedRules, isStatic, setIsStatic, setName
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.MonikeredElement
getMoniker, hasMoniker, setMoniker
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Element
createOwnedComment, getETarget, getOwnedComments
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, 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.ocl.examples.pivot.util.Visitable
accept, eClass
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getOwnedLiterals

org.eclipse.emf.common.util.EList<EnumerationLiteral> getOwnedLiterals()
Returns the value of the 'Owned Literal' containment reference list. The list contents are of type EnumerationLiteral. It is bidirectional and its opposite is 'Enumeration'. The ordered set of literals for this Enumeration.

Returns:
the value of the 'Owned Literal' containment reference list.
See Also:
PivotPackage.getEnumeration_OwnedLiteral(), EnumerationLiteral.getEnumeration()
Generated
Model
opposite="enumeration" containment="true"

createOwnedLiteral

EnumerationLiteral createOwnedLiteral()
Creates a new EnumerationLiteral and appends it to the 'Owned Literal' containment reference list.

Returns:
The new EnumerationLiteral.
See Also:
getOwnedLiterals()
Generated