Module jonix.onix3

Class PrimaryPart

java.lang.Object
com.tectonica.jonix.onix3.PrimaryPart
All Implemented Interfaces:
OnixFlag, OnixTag, Serializable

public class PrimaryPart extends Object implements OnixFlag, Serializable

‘Primary part’ indicator

An empty element that allows a sender to identify a product part as the ‘primary’ part of a multiple-item product. For example, in a ‘book and toy’ or ‘book and DVD’ product, the book may be regarded as the primary part. Optional and non-repeating.

Format XML empty element
Reference name <PrimaryPart>
Short tag <x457>
Cardinality 0…1
Example <PrimaryPart/>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • PrimaryPart

      public PrimaryPart()
    • PrimaryPart

      public PrimaryPart(Element element)
  • Method Details

    • exists

      public boolean exists()
      Description copied from interface: OnixTag
      indicates whether this tag exists in the ONIX record
      Specified by:
      exists in interface OnixTag
      Returns:
      whether this tag (<PrimaryPart> or <x457>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<PrimaryPart> action)