Package org.incenp.obofoundry.sssom
Enum Class ValidationError
- All Implemented Interfaces:
Serializable
,Comparable<ValidationError>
,Constable
Represents all the post-parsing errors that can make a mapping set invalid.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGets the human-readable error message for this error.static String
getMessage
(EnumSet<ValidationError> values) Gets a human-readable error message for a set of validation errors.static ValidationError
Returns the enum constant of this class with the specified name.static ValidationError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MISSING_SET_ID
-
MISSING_LICENSE
-
REDEFINED_BUILTIN_PREFIX
-
MISSING_SUBJECT
-
MISSING_OBJECT
-
MISSING_PREDICATE
-
MISSING_JUSTIFICATION
-
INVALID_PREDICATE_TYPE
-
MISSING_RECORD_ID
-
DUPLICATED_RECORD_ID
-
-
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
-
getMessage
Gets the human-readable error message for this error.- Returns:
- The error message.
-
getMessage
Gets a human-readable error message for a set of validation errors.- Parameters:
values
- A set of validation errors.- Returns:
- An error message listing all the individual errors.
-