org.eclipse.ocl.examples.pivot
Interface EnumerationLiteral

All Superinterfaces:
DomainElement, DomainEnumerationLiteral, DomainNamedElement, Element, org.eclipse.emf.ecore.EObject, Nameable, NamedElement, org.eclipse.emf.common.notify.Notifier, PivotObject, Visitable
All Known Implementing Classes:
EnumerationLiteralImpl

public interface EnumerationLiteral
extends NamedElement, DomainEnumerationLiteral

A representation of the model object 'Enumeration Literal'.

See Also:
PivotPackage.getEnumerationLiteral()
Generated
Implements:
org.eclipse.ocl.examples.domain.elements.DomainEnumerationLiteral An enumeration literal is a value of an enumeration.

The following features are supported:


Method Summary
 Enumeration getEnumeration()
          Returns the value of the 'Enumeration' container reference.
 java.lang.Number getValue()
          Returns the value of the 'Value' attribute.
 void setEnumeration(Enumeration value)
          Sets the value of the 'Enumeration' container reference.
 void setValue(java.lang.Number value)
          Sets the value of the 'Value' attribute.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.NamedElement
getName, isStatic, setIsStatic, setName
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Element
allOwnedElements, getETarget, getExtension, getOwnedAnnotation, getOwnedComment, getValue
 
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 org.eclipse.ocl.examples.domain.elements.DomainEnumerationLiteral
getEnumerationLiteralId, getEnumerator
 

Method Detail

getEnumeration

Enumeration getEnumeration()
Returns the value of the 'Enumeration' container reference. It is bidirectional and its opposite is 'Owned Literal'. The Enumeration that this EnumerationLiteral is a member of.

Specified by:
getEnumeration in interface DomainEnumerationLiteral
Returns:
the value of the 'Enumeration' container reference.
See Also:
setEnumeration(Enumeration), PivotPackage.getEnumerationLiteral_Enumeration(), Enumeration.getOwnedLiteral()
Generated

setEnumeration

void setEnumeration(Enumeration value)
Sets the value of the 'Enumeration' container reference.

Parameters:
value - the new value of the 'Enumeration' container reference.
See Also:
getEnumeration()
Generated

getValue

java.lang.Number getValue()
Returns the value of the 'Value' attribute. The default value is "0".

If the meaning of the 'Value' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Value' attribute.
See Also:
setValue(Number), PivotPackage.getEnumerationLiteral_Value()
Generated

setValue

void setValue(java.lang.Number value)
Sets the value of the 'Value' attribute.

Parameters:
value - the new value of the 'Value' attribute.
See Also:
getValue()
Generated