Package net.ionite.docval.config
Enum ConfigData.UnknownKeywords
- java.lang.Object
-
- java.lang.Enum<ConfigData.UnknownKeywords>
-
- net.ionite.docval.config.ConfigData.UnknownKeywords
-
- All Implemented Interfaces:
Serializable
,Comparable<ConfigData.UnknownKeywords>
- Enclosing class:
- ConfigData
public static enum ConfigData.UnknownKeywords extends Enum<ConfigData.UnknownKeywords>
Defines the way to handle unknown keywords
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConfigData.UnknownKeywords
valueOf(String name)
Returns the enum constant of this type with the specified name.static ConfigData.UnknownKeywords[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WARN
public static final ConfigData.UnknownKeywords WARN
Process as usual, but add a warning to the ValidationResult
-
ERROR
public static final ConfigData.UnknownKeywords ERROR
Process as usual, but add a error to the ValidationResult
-
FAIL
public static final ConfigData.UnknownKeywords FAIL
Fail with a ValidatorException
-
IGNORE
public static final ConfigData.UnknownKeywords IGNORE
Ignore the document without any errors or warnings
-
-
Method Detail
-
values
public static ConfigData.UnknownKeywords[] 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 (ConfigData.UnknownKeywords c : ConfigData.UnknownKeywords.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConfigData.UnknownKeywords 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
-
-