- All Implemented Interfaces:
OnixCodelist
,Serializable
,Comparable<ProductCompositions>
,Constable
Enum
that corresponds to ONIX Codelist 2
Description: Product composition
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixCodelist
OnixCodelist.Pair
-
Enum Constant Summary
Enum ConstantDescriptionMultiple-component product retailed as a wholeUsed only when an ONIX record is required for a collection-as-a-whole, even though it is not currently retailed as suchCarrying multiple components, primarily for retailing as separate items.Product available to the book trade, but not for general retail sale as a whole.Used only when an ONIX record is required for a component-as-an-item, even though it is not currently available as suchProduct available to the book trade, but not for retail sale, and not carrying retail items, eg empty dumpbin, empty counterpack, promotional material -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProductCompositions
static Optional<ProductCompositions>
byCodeOptional
(String code) static String
codeToDesciption
(String code) getCode()
static ProductCompositions
Returns the enum constant of this class with the specified name.static ProductCompositions[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface com.tectonica.jonix.common.OnixCodelist
pair
-
Enum Constant Details
-
Single_component_retail_product
-
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 suchJonix-Comment: Introduced in Onix3
-
Multiple_component_retail_product
Multiple-component product retailed as a whole -
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
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
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
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
-
description
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getCode
- Specified by:
getCode
in interfaceOnixCodelist
-
getDescription
- Specified by:
getDescription
in interfaceOnixCodelist
-
byCode
-
byCodeOptional
-
codeToDesciption
-