- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixProductClassification>
,OnixComposite.OnixDataCompositeWithKey<JonixProductClassification,
,ProductClassificationTypes> OnixTag
,Serializable
Product classification composite
A repeatable group of data elements which together define a product classification (NOT to be confused with a subject classification). The intended use is to enable national or international trade classifications (aka commodity codes) to be carried in an ONIX record.
Reference name | <ProductClassification> |
Short tag | <productclassification> |
- <
Product
>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixComposite
OnixComposite.OnixDataComposite<V extends JonixStruct>, OnixComposite.OnixDataCompositeUncommon, OnixComposite.OnixDataCompositeWithKey<V extends JonixKeyedStruct<K>,
K extends Enum<K> & OnixCodelist>, OnixComposite.OnixSuperComposite -
Field Summary
Modifier and TypeFieldDescription(type: DateOrDateTime)static final ProductClassification
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<ProductClassification> action) percent()
The percentage of the unit value of the product that is assignable to a designated product classification.A classification code from the scheme specified in <ProductClassificationType>.An ONIX code identifying the scheme from which the identifier in <ProductClassificationCode> is taken.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
textformat
-
textcase
-
language
-
transliteration
-
datestamp
(type: DateOrDateTime) -
sourcetype
-
sourcename
-
EMPTY
-
-
Constructor Details
-
ProductClassification
public ProductClassification() -
ProductClassification
-
-
Method Details
-
_initialize
public void _initialize()Description copied from interface:OnixComposite
This is an internal API. Since Jonix 8.0, composite objects are being populated lazily. This method initiates the population process, and is invoked internally by the accessor APIs of the composites- Specified by:
_initialize
in interfaceOnixComposite
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-
getXmlElement
Description copied from interface:OnixComposite
For advanced use-cases only.- Specified by:
getXmlElement
in interfaceOnixComposite
- Returns:
- native representation of the XML element underlying to this tag
-
productClassificationType
An ONIX code identifying the scheme from which the identifier in <ProductClassificationCode> is taken. Mandatory in any instance of the <ProductClassification> composite, and non-repeating.
Jonix-Comment: this field is required -
productClassificationCode
A classification code from the scheme specified in <ProductClassificationType>. Mandatory in any instance of the <ProductClassification> composite, and non-repeating.
Jonix-Comment: this field is required -
percent
The percentage of the unit value of the product that is assignable to a designated product classification. Optional and non-repeating. Used when a mixed product (eg book and CD) belongs partly to two or more product classifications.
Jonix-Comment: this field is optional -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixProductClassification>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixProductClassification,
ProductClassificationTypes>
-