|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.common.util.AbstractEnumerator
public abstract class AbstractEnumerator
An extensible enumerator implementation.
| Nested Class Summary | |
|---|---|
private static class |
AbstractEnumerator.AbstractEnumeratorExternalizeable
|
| Field Summary | |
|---|---|
private java.lang.String |
literal
The literal value of the enumerator. |
private java.lang.String |
name
The name of the enumerator. |
private int |
value
The int value of the enumerator. |
| Constructor Summary | |
|---|---|
protected |
AbstractEnumerator(int value,
java.lang.String name)
Creates an initialized instance. |
protected |
AbstractEnumerator(int value,
java.lang.String name,
java.lang.String literal)
Creates an initialized instance. |
| Method Summary | |
|---|---|
java.lang.String |
getLiteral()
Returns the literal value of the enumerator. |
java.lang.String |
getName()
Returns the name of the enumerator. |
int |
getValue()
Returns the int value of the enumerator. |
java.lang.String |
toString()
Returns the literal value of the enumerator, which is its string representation. |
protected java.lang.Object |
writeReplace()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.String name
private final int value
int value of the enumerator.
private final java.lang.String literal
| Constructor Detail |
|---|
protected AbstractEnumerator(int value,
java.lang.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,
java.lang.String name,
java.lang.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 java.lang.String getName()
getName in interface Enumeratorpublic final int getValue()
int value of the enumerator.
getValue in interface Enumeratorpublic final java.lang.String getLiteral()
getLiteral in interface Enumeratorpublic final java.lang.String toString()
toString in class java.lang.Object
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||