public enum Action extends Enum<Action>
The possible actions are:
Enum Constant and Description |
---|
ATTACH
Option to upload and attach.
|
NOTHING
Option to upload only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAttach()
Checks whether the action is set to attach.
|
boolean |
isNothing()
Checks whether the action is set to nothing.
|
static Action |
parse(String type)
Parses the action.
|
String |
toString() |
static Action |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action ATTACH
public static final Action NOTHING
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Action parse(String type)
type
- the typepublic boolean isAttach()
public boolean isNothing()