org.eclipse.ocl
Interface EvaluationEnvironment.Enumerations<EL>

All Known Implementing Classes:
EcoreEvaluationEnvironment, EcoreEvaluationEnvironmentWithScopedExtentMap, PartialEcoreEvaluationEnvironment, UMLEvaluationEnvironment
Enclosing interface:
EvaluationEnvironment<C,O,P,CLS,E>

public static interface EvaluationEnvironment.Enumerations<EL>

Optional adapter interface for evaluation environments that support additional enumeration evaluation capabilities.

Since:
1.2
Author:
Christian W. Damus (cdamus)
See Also:
OCLUtil.getAdapter(EvaluationEnvironment, Class)

Method Summary
 java.lang.Object getValue(EL enumerationLiteral)
          Obtains the Java-language value of the specified enumeration literal.
 

Method Detail

getValue

java.lang.Object getValue(EL enumerationLiteral)
Obtains the Java-language value of the specified enumeration literal. Often, this is an instance of an EMF-generated enumeration type.

Parameters:
enumerationLiteral - the enumeration literal model element
Returns:
the corresponding run-time instance