public enum CmdOutput extends java.lang.Enum<CmdOutput>
Enum Constant and Description |
---|
AUTHENTICATION_ERROR |
DID_NOTHING |
EMPTY |
FAILED |
MISSING_POWER |
SUCCEEDED |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MESSAGE_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMessage(java.lang.String str) |
static boolean |
isSuccess(java.lang.String output) |
static java.lang.String |
succeededOrFailed(boolean result,
java.lang.String message) |
static CmdOutput |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CmdOutput[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
java.lang.String |
withMessage(java.lang.String message) |
public static final CmdOutput AUTHENTICATION_ERROR
public static final CmdOutput MISSING_POWER
public static final CmdOutput SUCCEEDED
public static final CmdOutput FAILED
public static final CmdOutput DID_NOTHING
public static final CmdOutput EMPTY
public static final java.lang.String MESSAGE_SEPARATOR
public static CmdOutput[] values()
for (CmdOutput c : CmdOutput.values()) System.out.println(c);
public static CmdOutput 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 java.lang.String getMessage(java.lang.String str)
public java.lang.String withMessage(java.lang.String message)
public static java.lang.String succeededOrFailed(boolean result, java.lang.String message)
public static boolean isSuccess(java.lang.String output)