Module de.codecamp.messages.shared
Package de.codecamp.messages.shared.conf
Enum UndeclaredKeyPolicy
- java.lang.Object
-
- java.lang.Enum<UndeclaredKeyPolicy>
-
- de.codecamp.messages.shared.conf.UndeclaredKeyPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<UndeclaredKeyPolicy>
public enum UndeclaredKeyPolicy extends Enum<UndeclaredKeyPolicy>
Determines what to do when a key in a bundle file is not declared anywhere.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_COMMENT_AND_WARNFAILNONEREMOVEWARN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UndeclaredKeyPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static UndeclaredKeyPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAIL
public static final UndeclaredKeyPolicy FAIL
-
WARN
public static final UndeclaredKeyPolicy WARN
-
ADD_COMMENT_AND_WARN
public static final UndeclaredKeyPolicy ADD_COMMENT_AND_WARN
-
REMOVE
public static final UndeclaredKeyPolicy REMOVE
-
NONE
public static final UndeclaredKeyPolicy NONE
-
-
Method Detail
-
values
public static UndeclaredKeyPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UndeclaredKeyPolicy c : UndeclaredKeyPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UndeclaredKeyPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-