Package com.blackbuild.klum.ast
Enum Class Validate.Level
- All Implemented Interfaces:
Serializable,Comparable<Validate.Level>,Constable
- Enclosing class:
- Validate
Defines the severity of the validation problem.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the validation problem is a deprecation warning, meaning that the validation target is still valid but should not be used anymore.Indicates that the validation problem is an error, meaning that the validation target is not valid.Informational message, used to indicate that something is not wrong, but might be worth noting.No validation problem, used as a default valueWarning message, used to indicate that something is not wrong, but might lead to problems later on. -
Method Summary
Modifier and TypeMethodDescriptioncombine(Validate.Level other) booleanequalOrWorseThen(Validate.Level level) static Validate.LevelfromString(String level) static Validate.LevelReturns the enum constant of this class with the specified name.static Validate.Level[]values()Returns an array containing the constants of this enum class, in the order they are declared.booleanworseThen(Validate.Level other)
-
Enum Constant Details
-
NONE
No validation problem, used as a default value -
INFO
Informational message, used to indicate that something is not wrong, but might be worth noting. -
WARNING
Warning message, used to indicate that something is not wrong, but might lead to problems later on. -
DEPRECATION
Indicates that the validation problem is a deprecation warning, meaning that the validation target is still valid but should not be used anymore. -
ERROR
Indicates that the validation problem is an error, meaning that the validation target is not valid.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
combine
-
worseThen
-
equalOrWorseThen
-
fromString
-