|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CLIServiceTools.Responses>
things.thinger.service.local.CLIServiceTools.Responses
public static enum CLIServiceTools.Responses
The specific responses.
Method Summary | |
---|---|
java.lang.String |
format(java.lang.String commandName)
Format the response, simple. |
java.lang.String |
format(java.lang.String commandName,
Receipt finalReceipt,
java.lang.String text,
java.lang.String additional)
Format the response. |
static CLIServiceTools.Responses |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static CLIServiceTools.Responses[] |
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 CLIServiceTools.Responses FAIL_BAD_COMMAND_PARSE
public static final CLIServiceTools.Responses FAIL_BAD_COMMAND
public static final CLIServiceTools.Responses FAIL_BAD_UNKNOWN_COMMAND
public static final CLIServiceTools.Responses FAIL_BAD_COULD_NOT_CREATE
public static final CLIServiceTools.Responses FAIL_BAD_COULD_NOT_ISSUE
public static final CLIServiceTools.Responses FAIL_BAD_GENERAL_PROBLEM
public static final CLIServiceTools.Responses FAIL_EXECUTION
public static final CLIServiceTools.Responses OK_NO_COMMAND
public static final CLIServiceTools.Responses OK_BUT_NOT_DONE
public static final CLIServiceTools.Responses OK
public static final CLIServiceTools.Responses DYING
public static final CLIServiceTools.Responses FAULT
Method Detail |
---|
public static CLIServiceTools.Responses[] values()
for (CLIServiceTools.Responses c : CLIServiceTools.Responses.values()) System.out.println(c);
public static CLIServiceTools.Responses 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 format(java.lang.String commandName, Receipt finalReceipt, java.lang.String text, java.lang.String additional)
commandName
- the command name.finalReceipt
- the final receipt for the command. If it is null, that it put nothing.text
- The text output. If null, it will use the stock text.additional
- The additional text. If null, it will be a single line of text.
public java.lang.String format(java.lang.String commandName)
commandName
- the command name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |