|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.util.AbstractEnumerator
public abstract class AbstractEnumerator
An extensible enumerator implementation.
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 |
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 Enumerator
public final int getValue()
int
value of the enumerator.
getValue
in interface Enumerator
public final java.lang.String getLiteral()
getLiteral
in interface Enumerator
public final java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
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 |