Package org.eclipse.m2m.atl.emftvm.util
Class EnumLiteral
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.EnumLiteral
- All Implemented Interfaces:
Serializable
Generic enumeration literal.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EnumLiteral
Creates a newEnumLiteral
.- Parameters:
name
- the literal name
-
-
Method Details
-
getName
Returns the literal name.- Returns:
- the name
-
toString
-
getEnumerator
public org.eclipse.emf.common.util.Enumerator getEnumerator(org.eclipse.emf.ecore.EEnum eEnum) throws IllegalArgumentException Returns the type-safe enumeration literal for eEnum.- Parameters:
eEnum
- theEEnum
type- Returns:
- the type-safe enumeration literal for eEnum
- Throws:
IllegalArgumentException
- if not found
-
hashCode
public int hashCode() -
equals
-