public enum ConfigActionType extends Enum<ConfigActionType>
ConfigAction
enum holds the optional actions in the EngineConfig tool. The enum runs validations that
are action-specific. Each ConfigAction holds a list of strings that represent it, and a list of validators that are
relevant for it.Enum Constant and Description |
---|
ACTION_ALL |
ACTION_GET |
ACTION_LIST |
ACTION_SET |
Modifier and Type | Method and Description |
---|---|
static ConfigActionType |
getActionType(String arg) |
void |
validate(EngineConfigMap engineConfigMap)
Iterates through the list of action specific validators of this ConfigAction
|
static ConfigActionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigActionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigActionType ACTION_ALL
public static final ConfigActionType ACTION_LIST
public static final ConfigActionType ACTION_GET
public static final ConfigActionType ACTION_SET
public static ConfigActionType[] values()
for (ConfigActionType c : ConfigActionType.values()) System.out.println(c);
public static ConfigActionType 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 ConfigActionType getActionType(String arg)
public void validate(EngineConfigMap engineConfigMap) throws IllegalArgumentException
engineConfigMap
- Should hold the arguments needed in order to validate this ConfigAction.IllegalArgumentException
Copyright © 2012. All Rights Reserved.