Enum Class BagitWarning

java.lang.Object
java.lang.Enum<BagitWarning>
nl.knaw.dans.bagit.conformance.BagitWarning
All Implemented Interfaces:
Serializable, Comparable<BagitWarning>, Constable

public enum BagitWarning extends Enum<BagitWarning>
The BagIt specification is very flexible in what it allows. This leads to situations where something may be technically allowed, but should be discouraged. This class is for that purpose, to allow reporting of these allowed but discouraged situations to the user.
  • Enum Constant Details

    • BAG_WITHIN_A_BAG

      public static final BagitWarning BAG_WITHIN_A_BAG
    • DIFFERENT_CASE

      public static final BagitWarning DIFFERENT_CASE
    • DIFFERENT_NORMALIZATION

      public static final BagitWarning DIFFERENT_NORMALIZATION
    • EXTRA_LINES_IN_BAGIT_FILES

      public static final BagitWarning EXTRA_LINES_IN_BAGIT_FILES
    • LEADING_DOT_SLASH

      public static final BagitWarning LEADING_DOT_SLASH
    • NON_STANDARD_ALGORITHM

      public static final BagitWarning NON_STANDARD_ALGORITHM
    • MD5SUM_TOOL_GENERATED_MANIFEST

      public static final BagitWarning MD5SUM_TOOL_GENERATED_MANIFEST
    • MISSING_TAG_MANIFEST

      public static final BagitWarning MISSING_TAG_MANIFEST
    • OLD_BAGIT_VERSION

      public static final BagitWarning OLD_BAGIT_VERSION
    • OS_SPECIFIC_FILES

      public static final BagitWarning OS_SPECIFIC_FILES
    • PAYLOAD_OXUM_MISSING

      public static final BagitWarning PAYLOAD_OXUM_MISSING
    • TAG_FILES_ENCODING

      public static final BagitWarning TAG_FILES_ENCODING
    • WEAK_CHECKSUM_ALGORITHM

      public static final BagitWarning WEAK_CHECKSUM_ALGORITHM
    • MANIFEST_SETS_DIFFER

      public static final BagitWarning MANIFEST_SETS_DIFFER
  • Field Details

    • messageBundleKey

      private final String messageBundleKey
    • messages

      private static final ResourceBundle messages
  • Constructor Details

    • BagitWarning

      private BagitWarning(String reason)
  • Method Details

    • values

      public static BagitWarning[] 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 BagitWarning 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
    • getReason

      public String getReason()