public enum TrapActionEnum extends Enum<TrapActionEnum>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
abstract TrapAction |
getTrapAction()
Get the concrete TrapAction which can process this request.
|
static TrapActionEnum |
valueOf(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.
|
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
public static TrapActionEnum[] values()
for (TrapActionEnum c : TrapActionEnum.values()) System.out.println(c);
public static TrapActionEnum 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 abstract TrapAction getTrapAction()
Copyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.