Enum ValidationError.Severity
- java.lang.Object
-
- java.lang.Enum<ValidationError.Severity>
-
- com.tonic.analysis.source.ast.validation.ValidationError.Severity
-
- All Implemented Interfaces:
Serializable,Comparable<ValidationError.Severity>
- Enclosing class:
- ValidationError
public static enum ValidationError.Severity extends Enum<ValidationError.Severity>
How serious a validation issue is.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationError.SeverityvalueOf(String name)Returns the enum constant of this type with the specified name.static ValidationError.Severity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ERROR
public static final ValidationError.Severity ERROR
The tree is invalid and must not be used as it stands.
-
WARNING
public static final ValidationError.Severity WARNING
The tree is questionable but still usable, so validation does not reject it.
-
INFO
public static final ValidationError.Severity INFO
An observation worth reporting that implies nothing is wrong.
-
-
Method Detail
-
values
public static ValidationError.Severity[] 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 (ValidationError.Severity c : ValidationError.Severity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationError.Severity 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
-
-