Enum Class ValidationLevel
- All Implemented Interfaces:
Serializable
,Comparable<ValidationLevel>
,Constable
ValidationLevel
represents a severity level for ValidationResult
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe level for pointing out an issue pertaining to a required field as described in the Phenopacket Schema requirementsThe level for pointing out an issue pertaining to a recommended field as described in the Phenopacket Schema requirements -
Method Summary
Modifier and TypeMethodDescriptionboolean
isError()
boolean
static ValidationLevel
Returns the enum constant of this class with the specified name.static ValidationLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WARNING
The level for pointing out an issue pertaining to a recommended field as described in the Phenopacket Schema requirementsBriefly, the field is not absolutely required or there are valid reasons in particular circumstances that the field does not apply to the intended use case of the Phenopacket. This corresponds to the keywords SHOULD and RECOMMENDED in RFC2119.
-
ERROR
The level for pointing out an issue pertaining to a required field as described in the Phenopacket Schema requirementsBriefly, the field is required, its presence is an absolute requirement of the specification, failing which the entire phenopacket is regarded as malformed. This corresponds to the keywords MUST, REQUIRED, and SHALL in RFC2119.
-
-
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
-
isError
public boolean isError()- Returns:
true
if thisValidationLevel
isERROR
-
isWarning
public boolean isWarning()- Returns:
true
if thisValidationLevel
isWARNING
-