Package com.networknt.oas.validator
Enum ValidationResults.Severity
- java.lang.Object
-
- java.lang.Enum<ValidationResults.Severity>
-
- com.networknt.oas.validator.ValidationResults.Severity
-
- All Implemented Interfaces:
Serializable,Comparable<ValidationResults.Severity>
- Enclosing class:
- ValidationResults
public static enum ValidationResults.Severity extends Enum<ValidationResults.Severity>
-
-
Field Summary
Fields Modifier and Type Field Description static ValidationResults.SeverityMAX_SEVERITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleange(ValidationResults.Severity other)booleangt(ValidationResults.Severity other)booleanle(ValidationResults.Severity other)booleanlt(ValidationResults.Severity other)static ValidationResults.SeverityvalueOf(String name)Returns the enum constant of this type with the specified name.static ValidationResults.Severity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ValidationResults.Severity NONE
-
INFO
public static final ValidationResults.Severity INFO
-
WARNING
public static final ValidationResults.Severity WARNING
-
ERROR
public static final ValidationResults.Severity ERROR
-
-
Field Detail
-
MAX_SEVERITY
public static final ValidationResults.Severity MAX_SEVERITY
-
-
Method Detail
-
values
public static ValidationResults.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 (ValidationResults.Severity c : ValidationResults.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 ValidationResults.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
-
lt
public boolean lt(ValidationResults.Severity other)
-
le
public boolean le(ValidationResults.Severity other)
-
gt
public boolean gt(ValidationResults.Severity other)
-
ge
public boolean ge(ValidationResults.Severity other)
-
-