|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.suggestion.util.Enum
public abstract class Enum
An abstract class which provides backbone features of the various Enumerations in the sdk.
Field Summary | |
---|---|
protected int |
key
|
static int |
NONE
|
static java.lang.String |
NONE_STRING
|
Constructor Summary | |
---|---|
|
Enum()
Constructor. |
protected |
Enum(int aKey)
Constructor. |
|
Enum(java.lang.String aValue)
Constructor. |
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
int |
get()
Get the enum key. |
abstract java.lang.String[] |
getData()
Get the possible enum data. |
boolean |
isSet()
Is the key set. |
void |
set(int aKey)
Set the enum based on the key. |
void |
set(java.lang.String aValue)
Set the value based on the value. |
java.lang.String |
toLogString()
Return string representation for logging purposes/ |
java.lang.String |
toString()
|
void |
unset()
Unset the enum. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int NONE
public static java.lang.String NONE_STRING
protected int key
Constructor Detail |
---|
public Enum()
public Enum(java.lang.String aValue) throws InvalidValueException
aValue
- a value
InvalidValueException
protected Enum(int aKey) throws InvalidValueException
aKey
- a key
InvalidValueException
Method Detail |
---|
public abstract java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int get()
public boolean isSet()
public void set(int aKey) throws InvalidValueException
aKey
- a key
InvalidValueException
public void set(java.lang.String aValue) throws InvalidValueException
aValue
- a value
InvalidValueException
public java.lang.String toLogString()
public java.lang.String toString()
toString
in class java.lang.Object
public void unset()
public abstract java.lang.String[] getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |