public enum Cmd extends java.lang.Enum<Cmd> implements ICmd
| Enum Constant and Description |
|---|
AUTHENTICATE |
CONFIRM_EMAIL |
DELETE |
DO_NOTHING |
EMAIL |
GET |
HELP |
POST |
PUT |
QUERY |
QUERY_LINK_SOURCES |
QUERY_LINK_TARGETS |
QUERY_LINKS |
REGISTER |
VALIDATE |
| Modifier and Type | Method and Description |
|---|---|
IArgList |
argList() |
java.lang.String |
description() |
IFlag[] |
flags() |
java.lang.String |
getHelpString() |
java.lang.String |
getNews(java.lang.String agent,
java.util.Map<IArg,java.lang.String> args) |
static ICmd[] |
getValues() |
boolean |
hasFlag(IFlag flag) |
IResponse |
validate(java.lang.String agent,
java.util.Map<IArg,java.lang.String> args) |
static Cmd |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Cmd[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
java.util.Map<IArg,java.lang.String> |
withArgs(java.lang.Object... values) |
public static final Cmd HELP
public static final Cmd DO_NOTHING
public static final Cmd AUTHENTICATE
public static final Cmd VALIDATE
public static final Cmd GET
public static final Cmd QUERY
public static final Cmd POST
public static final Cmd PUT
public static final Cmd DELETE
public static final Cmd QUERY_LINKS
public static final Cmd QUERY_LINK_SOURCES
public static final Cmd QUERY_LINK_TARGETS
public static final Cmd EMAIL
public static final Cmd REGISTER
public static final Cmd CONFIRM_EMAIL
public static Cmd[] values()
for (Cmd c : Cmd.values()) System.out.println(c);
public static Cmd 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 description()
description in interface IChoicepublic IFlag[] flags()
flags in interface IFlagObjectpublic boolean hasFlag(IFlag flag)
hasFlag in interface IFlagObjectpublic IResponse validate(java.lang.String agent, java.util.Map<IArg,java.lang.String> args)
public java.lang.String getNews(java.lang.String agent,
java.util.Map<IArg,java.lang.String> args)
public java.lang.String getHelpString()
getHelpString in interface ICmdpublic java.util.Map<IArg,java.lang.String> withArgs(java.lang.Object... values)
public static ICmd[] getValues()