|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TrapActionEnum> dk.netarkivet.harvester.webinterface.TrapActionEnum
public enum TrapActionEnum
Represents the various actions which can be carried out to modify Global Crawler Traps.
Enum Constant Summary | |
---|---|
ACTIVATE
Change an existing list from inactive to active. |
|
CREATE_OR_UPDATE
Corresponds to uploading of a global crawler trap list, either as a new list or as an update to an existing list. |
|
DEACTIVATE
Change an existing list from active to inactive. |
|
DELETE
Action to delete an existing list. |
|
NULL_ACTION
Do nothing. |
|
READ
Action to download an existing list to browser or file. |
Method Summary | |
---|---|
abstract TrapAction |
getTrapAction()
Get the concrete TrapAction which can process this request. |
static TrapActionEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TrapActionEnum[] |
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 TrapActionEnum CREATE_OR_UPDATE
public static final TrapActionEnum READ
public static final TrapActionEnum DELETE
public static final TrapActionEnum ACTIVATE
public static final TrapActionEnum DEACTIVATE
public static final TrapActionEnum NULL_ACTION
Method Detail |
---|
public static TrapActionEnum[] values()
for (TrapActionEnum c : TrapActionEnum.values()) System.out.println(c);
public static TrapActionEnum 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 abstract TrapAction getTrapAction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |