public static enum AddElement.IfPresent extends java.lang.Enum<AddElement.IfPresent>
TOExecutionResult.Type
,
although they are intentionally not supposed to match necessarily one-to-one.Enum Constant and Description |
---|
Fail
Fail if the element to be added is already present
|
NoOp
Do nothing, not add, not warn neither fail, if the element to be added is already present
|
Overwrite
Overwrite and not warn if the element to be added is already present
|
WarnButAdd
Warn, but add, if the element to be added is already present
|
WarnNotAdd
Warn and do not add if the element to be added is already present
|
Modifier and Type | Method and Description |
---|---|
static AddElement.IfPresent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AddElement.IfPresent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AddElement.IfPresent Fail
public static final AddElement.IfPresent WarnNotAdd
public static final AddElement.IfPresent WarnButAdd
public static final AddElement.IfPresent NoOp
public static final AddElement.IfPresent Overwrite
public static AddElement.IfPresent[] values()
for (AddElement.IfPresent c : AddElement.IfPresent.values()) System.out.println(c);
public static AddElement.IfPresent 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 null