Module jonix.onix2

Class Audience

java.lang.Object
com.tectonica.jonix.onix2.Audience
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataComposite<JonixAudience>, OnixComposite.OnixDataCompositeWithKey<JonixAudience,AudienceCodeTypes>, OnixTag, Serializable

Audience composite

A repeatable group of data elements which together describe an audience to which the product is directed.

Reference name <Audience>
Short tag <audience>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • Audience

      public Audience()
    • Audience

      public Audience(Element element)
  • 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 interface OnixComposite
    • 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 (<Audience> or <audience>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<Audience> action)
    • getXmlElement

      public Element getXmlElement()
      Description copied from interface: OnixComposite
      For advanced use-cases only.
      Specified by:
      getXmlElement in interface OnixComposite
      Returns:
      native representation of the XML element underlying to this tag
    • audienceCodeType

      public AudienceCodeType audienceCodeType()

      An ONIX code which identifies the scheme from which the code in <AudienceCodeValue> is taken. Mandatory in each occurrence of the <Audience> composite, and non-repeating.

      Jonix-Comment: this field is required
    • audienceCodeValue

      public AudienceCodeValue audienceCodeValue()

      A code value taken from the scheme specified in <AudienceCodeType>. Mandatory in each occurrence of the <Audience> composite, and non-repeating.

      Jonix-Comment: this field is required
    • audienceCodeTypeName

      public AudienceCodeTypeName audienceCodeTypeName()

      A name which identifies a proprietary audience code when the code in <AudienceCodeType> indicates a proprietary scheme, eg a vendor’s own code. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • asStruct

      public JonixAudience asStruct()
      Specified by:
      asStruct in interface OnixComposite.OnixDataComposite<JonixAudience>
    • structKey

      public AudienceCodeTypes structKey()
      Specified by:
      structKey in interface OnixComposite.OnixDataCompositeWithKey<JonixAudience,AudienceCodeTypes>