Enum Class ValidationError

java.lang.Object
java.lang.Enum<ValidationError>
org.incenp.obofoundry.sssom.ValidationError
All Implemented Interfaces:
Serializable, Comparable<ValidationError>, Constable

public enum ValidationError extends Enum<ValidationError>
Represents all the post-parsing errors that can make a mapping set invalid.
  • Enum Constant Details

    • MISSING_SET_ID

      public static final ValidationError MISSING_SET_ID
    • MISSING_LICENSE

      public static final ValidationError MISSING_LICENSE
    • REDEFINED_BUILTIN_PREFIX

      public static final ValidationError REDEFINED_BUILTIN_PREFIX
    • MISSING_SUBJECT

      public static final ValidationError MISSING_SUBJECT
    • MISSING_OBJECT

      public static final ValidationError MISSING_OBJECT
    • MISSING_PREDICATE

      public static final ValidationError MISSING_PREDICATE
    • MISSING_JUSTIFICATION

      public static final ValidationError MISSING_JUSTIFICATION
    • INVALID_PREDICATE_TYPE

      public static final ValidationError INVALID_PREDICATE_TYPE
    • MISSING_RECORD_ID

      public static final ValidationError MISSING_RECORD_ID
    • DUPLICATED_RECORD_ID

      public static final ValidationError DUPLICATED_RECORD_ID
  • Method Details

    • values

      public static ValidationError[] 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

      public static ValidationError valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getMessage

      public String getMessage()
      Gets the human-readable error message for this error.
      Returns:
      The error message.
    • getMessage

      public static String getMessage(EnumSet<ValidationError> values)
      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.