Module jonix.onix3

Class MainAudience

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

public class MainAudience extends Object implements OnixFlag, Serializable

Main audience flag

An empty element that identifies an instance of the <Audience> composite as representing the primary or main audience for the product. The main audience may be expressed in more than one audience scheme, ie there may be two or more instances of the <Audience> composite, using different schemes, each carrying the <MainAudience/> flag, so long as there is only one main audience per scheme (ie per value of <AudienceCodeType>). Optional and non-repeating in each occurrence of the <Audience> composite.

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

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-3.10
See Also:
  • Field Details

  • Constructor Details

    • MainAudience

      public MainAudience()
    • MainAudience

      public MainAudience(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 (<MainAudience> or <x583>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<MainAudience> action)