Enum Class ValidationStatus

java.lang.Object
java.lang.Enum<ValidationStatus>
org.verapdf.metadata.fixer.utils.ValidationStatus
All Implemented Interfaces:
Serializable, Comparable<ValidationStatus>, java.lang.constant.Constable

public enum ValidationStatus extends Enum<ValidationStatus>
Current enum describe validation state according to validity of separated parts. This parts can separated to 4 groups:
  • Valid - if document is valid according to profile
  • Invalid metadata - if and only if according to specific list invalid only metadata. This list describes rules which provide difference between is metadata invalid or not
  • Invalid structure - if and only if [нарушает] rules other than metadata rules.
  • Invalid document - if [нарушает] as metadata rules as other than metadata rules
According to this status MetadataFixerImpl run different handling of document.
Author:
Evgeniy Muravitskiy
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
     
     
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Return combination of current status and given status according to next table: Current value Passed value Result value INVALID_DOCUMENT INVALID_DOCUMENT INVALID_DOCUMENT INVALID_STRUCTURE INVALID_DOCUMENT INVALID_METADATA INVALID_DOCUMENT VALID INVALID_DOCUMENT INVALID_STRUCTURE INVALID_DOCUMENT INVALID_DOCUMENT INVALID_STRUCTURE INVALID_STRUCTURE INVALID_METADATA INVALID_DOCUMENT VALID INVALID_STRUCTURE INVALID_METADATA INVALID_DOCUMENT INVALID_DOCUMENT INVALID_STRUCTURE INVALID_DOCUMENT INVALID_METADATA INVALID_METADATA VALID INVALID_METADATA VALID INVALID_DOCUMENT INVALID_DOCUMENT INVALID_STRUCTURE INVALID_STRUCTURE INVALID_METADATA INVALID_METADATA VALID VALID
    valueOf(int index)
    Get validation status from integer value.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static ValidationStatus[] 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 ValidationStatus 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
    • valueOf

      public static ValidationStatus valueOf(int index)
      Get validation status from integer value. Value must be from 0 to 3
      Parameters:
      index - number representation of validation status
      Returns:
      corresponding validation status
    • getStatus

      public ValidationStatus getStatus(ValidationStatus status)
      Return combination of current status and given status according to next table:
      Current value Passed value Result value
      INVALID_DOCUMENT
      INVALID_DOCUMENT INVALID_DOCUMENT
      INVALID_STRUCTURE INVALID_DOCUMENT
      INVALID_METADATA INVALID_DOCUMENT
      VALID INVALID_DOCUMENT
      INVALID_STRUCTURE
      INVALID_DOCUMENT INVALID_DOCUMENT
      INVALID_STRUCTURE INVALID_STRUCTURE
      INVALID_METADATA INVALID_DOCUMENT
      VALID INVALID_STRUCTURE
      INVALID_METADATA
      INVALID_DOCUMENT INVALID_DOCUMENT
      INVALID_STRUCTURE INVALID_DOCUMENT
      INVALID_METADATA INVALID_METADATA
      VALID INVALID_METADATA
      VALID
      INVALID_DOCUMENT INVALID_DOCUMENT
      INVALID_STRUCTURE INVALID_STRUCTURE
      INVALID_METADATA INVALID_METADATA
      VALID VALID
      Parameters:
      status - passed status argument
      Returns:
      result status