|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.util.AbstractEnumerator
An extensible enumerator implementation.
Constructor Summary | |
protected |
AbstractEnumerator(int value,
String name)
Creates an initialized instance. |
protected |
AbstractEnumerator(int value,
String name,
String literal)
Creates an initialized instance. |
Method Summary | |
String |
getLiteral()
Returns the literal value of the enumerator. |
String |
getName()
Returns the name of the enumerator. |
int |
getValue()
Returns the int value of the enumerator. |
String |
toString()
Returns the literal value of the enumerator, which is its string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected AbstractEnumerator(int value, String name)
value
- the int
value of the enumerator.name
- the name of the enumerator, which is also used as the literal value.protected AbstractEnumerator(int value, String name, String literal)
value
- the int
value of the enumerator.name
- the name of the enumerator.literal
- the literal value of the enumerator.Method Detail |
public final String getName()
getName
in interface Enumerator
public final int getValue()
int
value of the enumerator.
getValue
in interface Enumerator
public final String getLiteral()
getLiteral
in interface Enumerator
public final String toString()
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |