public enum EnumResult extends java.lang.Enum<EnumResult>
GetDetailsRet
,
GetStatusRet
Enum Constant and Description |
---|
COMP_ERROR |
ERROR |
EXEC_ERROR |
SUCESS |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Return the result's message of the task
|
int |
getResult()
Return the result of the task
|
static EnumResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumResult ERROR
public static final EnumResult SUCESS
public static final EnumResult COMP_ERROR
public static final EnumResult EXEC_ERROR
public static final EnumResult UNKNOWN
public static EnumResult[] values()
for (EnumResult c : EnumResult.values()) System.out.println(c);
public static EnumResult 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 namejava.lang.NullPointerException
- if the argument is nullpublic int getResult()
public java.lang.String getDescription()