Module jonix.common

Enum Class ProductCompositions

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

public enum ProductCompositions extends Enum<ProductCompositions> implements OnixCodelist
Enum that corresponds to ONIX Codelist 2

Description: Product composition

See Also:
  • Enum Constant Details

    • Single_component_retail_product

      public static final ProductCompositions Single_component_retail_product
    • Single_component_not_available_separately

      public static final ProductCompositions Single_component_not_available_separately
      Used only when an ONIX record is required for a component-as-an-item, even though it is not currently available as such

      Jonix-Comment: Introduced in Onix3

    • Multiple_component_retail_product

      public static final ProductCompositions Multiple_component_retail_product
      Multiple-component product retailed as a whole
    • Multiple_item_collection_retailed_as_separate_parts

      public static final ProductCompositions Multiple_item_collection_retailed_as_separate_parts
      Used only when an ONIX record is required for a collection-as-a-whole, even though it is not currently retailed as such
    • Trade_only_product

      public static final ProductCompositions Trade_only_product
      Product available to the book trade, but not for retail sale, and not carrying retail items, eg empty dumpbin, empty counterpack, promotional material
    • Multiple_item_trade_only_pack

      public static final ProductCompositions Multiple_item_trade_only_pack
      Product available to the book trade, but not for general retail sale as a whole. It carries multiple components for retailing as separate items, eg shrink-wrapped trade pack, filled dumpbin, filled counterpack
    • Multiple_item_pack

      public static final ProductCompositions Multiple_item_pack
      Carrying multiple components, primarily for retailing as separate items. The pack may be split and retailed as separate items OR retailed as a single item. Use instead of Multiple-item trade-only pack (code 30) if the data provider specifically wishes to make explicit that the pack may optionally be retailed as a whole
  • Field Details

    • code

      public final String code
    • description

      public final String description
  • Method Details

    • values

      public static ProductCompositions[] 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 ProductCompositions 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 ProductCompositions byCode(String code)
    • byCodeOptional

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

      public static String codeToDesciption(String code)