Module jonix.common

Enum Class SupplierRoles

java.lang.Object
java.lang.Enum<SupplierRoles>
com.tectonica.jonix.common.codelist.SupplierRoles
All Implemented Interfaces:
OnixCodelist, Serializable, Comparable<SupplierRoles>, Constable

public enum SupplierRoles extends Enum<SupplierRoles> implements OnixCodelist
Enum that corresponds to ONIX Codelist 93

Description: Supplier role

See Also:
  • Enum Constant Details

    • Unspecified

      public static final SupplierRoles Unspecified
      Default
    • Publisher_to_resellers

      public static final SupplierRoles Publisher_to_resellers
      Publisher as supplier to retail trade outlets
    • Publishers_exclusive_distributor_to_resellers

      public static final SupplierRoles Publishers_exclusive_distributor_to_resellers
    • Publishers_non_exclusive_distributor_to_resellers

      public static final SupplierRoles Publishers_non_exclusive_distributor_to_resellers
    • Wholesaler_to_retailers

      public static final SupplierRoles Wholesaler_to_retailers
      Wholesaler supplying retail trade outlets
    • Sales_agent

      public static final SupplierRoles Sales_agent
      Deprecated - use <MarketRepresentation> (ONIX 2.1) or <MarketPublishingDetail> (ONIX 3.0 or later) to specify a sales agent
    • Publishers_distributor_to_retailers

      public static final SupplierRoles Publishers_distributor_to_retailers
      In a specified supply territory. Use only where exclusive/non-exclusive status is not known. Prefer 02 or 03 as appropriate, where possible
    • POD_supplier

      public static final SupplierRoles POD_supplier
      Where a POD product is supplied to retailers and/or consumers direct from a POD source
    • Retailer

      public static final SupplierRoles Retailer
    • Publisher_to_end_customers

      public static final SupplierRoles Publisher_to_end_customers
      Publisher as supplier direct to consumers and/or institutional customers
    • Exclusive_distributor_to_end_customers

      public static final SupplierRoles Exclusive_distributor_to_end_customers
      Intermediary as exclusive distributor direct to consumers and/or institutional customers
    • Non_exclusive_distributor_to_end_customers

      public static final SupplierRoles Non_exclusive_distributor_to_end_customers
      Intermediary as non-exclusive distributor direct to consumers and/or institutional customers
    • Distributor_to_end_customers

      public static final SupplierRoles Distributor_to_end_customers
      Use only where exclusive/non-exclusive status is not known. Prefer 10 or 11 as appropriate, where possible
    • Exclusive_distributor_to_resellers_and_end_customers

      public static final SupplierRoles Exclusive_distributor_to_resellers_and_end_customers
      Intermediary as exclusive distributor to retailers and direct to consumers and/or institutional customers. Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

    • Non_exclusive_distributor_to_resellers_and_end_customers

      public static final SupplierRoles Non_exclusive_distributor_to_resellers_and_end_customers
      Intermediary as non-exclusive distributor to retailers and direct to consumers and/or institutional customers. Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

    • Distributor_to_resellers_and_end_customers

      public static final SupplierRoles Distributor_to_resellers_and_end_customers
      Use only where exclusive/non-exclusive status is not known. Prefer codes 13 or 14 as appropriate whenever possible. Only for use in ONIX 3.0 or later

      Jonix-Comment: Introduced in Onix3

  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static SupplierRoles[] 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 SupplierRoles 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
    • getCode

      public String getCode()
      Specified by:
      getCode in interface OnixCodelist
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface OnixCodelist
    • byCode

      public static SupplierRoles byCode(String code)
    • byCodeOptional

      public static Optional<SupplierRoles> byCodeOptional(String code)
    • codeToDesciption

      public static String codeToDesciption(String code)