Enum InventoryHeader

java.lang.Object
java.lang.Enum<InventoryHeader>
com.amilesend.discogs.csv.type.InventoryHeader
All Implemented Interfaces:
Serializable, Comparable<InventoryHeader>

public enum InventoryHeader extends Enum<InventoryHeader>
Defines the CSV headers for an inventory IMPORT/EXPORT file.
  • Enum Constant Details

  • Method Details

    • values

      public static InventoryHeader[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static InventoryHeader valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromValue

      public static InventoryHeader fromValue(String value)
      Gets the InventoryHeader enum from the given value.
      Parameters:
      value - the value
      Returns:
      the header, or null
    • getRequiredHeaders

      public static List<InventoryHeader> getRequiredHeaders(InventoryRecordType type)
      Gets the list of headers that are required.
      Returns:
      the list of required headers
    • toString

      public String toString()
      Overrides:
      toString in class Enum<InventoryHeader>
    • getHeader

      public String getHeader()
    • isRequired

      public boolean isRequired()
    • getValidator

      public ValueValidator getValidator()