org.eclipse.ocl.examples.pivot.manager
Class EnumeratorEnumerationLiteral

java.lang.Object
  extended by org.eclipse.ocl.examples.library.executor.ExecutorEnumerationLiteral
      extended by org.eclipse.ocl.examples.pivot.manager.EnumeratorEnumerationLiteral
All Implemented Interfaces:
org.eclipse.emf.common.util.Enumerator, DomainElement, DomainEnumerationLiteral, DomainNamedElement, Nameable

public class EnumeratorEnumerationLiteral
extends ExecutorEnumerationLiteral
implements org.eclipse.emf.common.util.Enumerator

An EnumeratorEnumerationLiteral is used as the unboxed representation when no Ecore Enumerator is avaialble. This occurs for UML-originated EnumersationLiterals.


Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.library.executor.ExecutorEnumerationLiteral
enumeration, name, ordinal
 
Constructor Summary
EnumeratorEnumerationLiteral(java.lang.String enumerationLiteralName, EnumerationTypeServer enumerationTypeServer, int ordinal)
           
 
Method Summary
 org.eclipse.emf.common.util.Enumerator getEnumerator()
           
 java.lang.String getLiteral()
           
 int getValue()
           
 
Methods inherited from class org.eclipse.ocl.examples.library.executor.ExecutorEnumerationLiteral
getEnumeration, getEnumerationLiteralId, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.emf.common.util.Enumerator
getName
 

Constructor Detail

EnumeratorEnumerationLiteral

public EnumeratorEnumerationLiteral(@NonNull
                                    java.lang.String enumerationLiteralName,
                                    @NonNull
                                    EnumerationTypeServer enumerationTypeServer,
                                    int ordinal)
Method Detail

getEnumerator

@NonNull
public org.eclipse.emf.common.util.Enumerator getEnumerator()
Specified by:
getEnumerator in interface DomainEnumerationLiteral

getLiteral

public java.lang.String getLiteral()
Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator

getValue

public int getValue()
Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator