|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<State> org.apache.lokahi.core.api.state.State
public enum State
Enum Constant Summary | |
---|---|
ACTIVE
|
|
CANCEL
|
|
COMPLETE
|
|
FAILED
|
|
INACTIVE
|
|
NEW
|
|
RUNNING
|
Method Summary | |
---|---|
java.lang.StringBuilder |
buildShortXMLRepresentation()
Builds a short xml representation of this object containing name, and primary key. |
java.lang.StringBuilder |
buildXMLRepresention()
Builds a xml representation of this object |
protected static java.lang.StringBuilder |
elementBuilder(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> a)
|
protected static java.lang.StringBuilder |
elementBuilder(java.lang.String name,
java.lang.String value)
|
java.lang.String |
getColor()
|
java.lang.String |
getName()
Gets the name. |
int |
getPk()
Gets the primary key |
static State |
getState(int id)
|
static java.util.Collection<State> |
getStates()
|
boolean |
isFinal()
|
static State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static State[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final State NEW
public static final State RUNNING
public static final State CANCEL
public static final State COMPLETE
public static final State FAILED
public static final State ACTIVE
public static final State INACTIVE
Method Detail |
---|
public static final State[] values()
for(State c : State.values()) System.out.println(c);
public static State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getPk()
Collectable
getPk
in interface Collectable
int
primary keypublic java.lang.String getName()
Collectable
getName
in interface Collectable
String
name.public java.lang.String getColor()
public static State getState(int id)
public static java.util.Collection<State> getStates()
public boolean isFinal()
public java.lang.StringBuilder buildShortXMLRepresentation()
Restable
buildShortXMLRepresentation
in interface Restable
public java.lang.StringBuilder buildXMLRepresention()
Restable
buildXMLRepresention
in interface Restable
protected static java.lang.StringBuilder elementBuilder(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> a)
protected static java.lang.StringBuilder elementBuilder(java.lang.String name, java.lang.String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |