|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Data.Type>
things.data.Data.Type
public static enum Data.Type
Type of Data. This can be used to give meaning to results, since most Data objects will come as a result to some operation. Having different purposes for General and Result types is probably a bad idea, since it forks the purpose of this class. However, too much work was done in other areas to separate them.
Enum Constant Summary | |
---|---|
ABORT
|
|
COMMAND
|
|
COMMAND_RESPONSE
|
|
COMMENT
|
|
ENTRY
|
|
EXCEPTION
|
|
FAIL
|
|
GENERIC
|
|
INCONCLUSIVE
|
|
INFO
|
|
KEEPALIVE
|
|
METRIC
|
|
PASS
|
|
WAITING
|
Method Summary | |
---|---|
java.lang.String |
getShortName()
Get the shortname for the outcome. |
boolean |
isResult()
Is this a result type? |
static Data.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Data.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Data.Type GENERIC
public static final Data.Type ENTRY
public static final Data.Type COMMAND
public static final Data.Type COMMAND_RESPONSE
public static final Data.Type COMMENT
public static final Data.Type KEEPALIVE
public static final Data.Type METRIC
public static final Data.Type INFO
public static final Data.Type PASS
public static final Data.Type INCONCLUSIVE
public static final Data.Type FAIL
public static final Data.Type EXCEPTION
public static final Data.Type ABORT
public static final Data.Type WAITING
Method Detail |
---|
public static Data.Type[] values()
for (Data.Type c : Data.Type.values()) System.out.println(c);
public static Data.Type 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getShortName()
public boolean isResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |