Module jonix.onix2

Class AudienceRange

java.lang.Object
com.tectonica.jonix.onix2.AudienceRange
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataComposite<JonixAudienceRange>, OnixTag, Serializable

public class AudienceRange extends Object implements OnixComposite.OnixDataComposite<JonixAudienceRange>, Serializable

Audience range composite

An optional and repeatable group of data elements which together describe an audience or readership range for which a product is intended. The composite can carry a single value from, to, or exact, or a pair of values with an explicit from and to. See examples below.

Reference name <AudienceRange>
Short tag <audiencerange>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • AudienceRange

      public AudienceRange()
    • AudienceRange

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

      public void ifExists(Consumer<AudienceRange> 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
    • audienceRangeQualifier

      public AudienceRangeQualifier audienceRangeQualifier()

      An ONIX code specifying the attribute (age, school grade etc) which is measured by the value in the <AudienceRangeValue> element. Mandatory in each occurrence of the <AudienceRange> composite, and non-repeating.

      Jonix-Comment: this field is required
    • audienceRangePrecisions

      An ONIX code specifying the “precision” of the value in the <AudienceRangeValue> element which follows (From, To, Exact). Mandatory in each occurrence of the <AudienceRange> composite, and non-repeating.

      Jonix-Comment: this list may be empty
    • audienceRangeValues

      public ListOfOnixElement<AudienceRangeValue,String> audienceRangeValues()

      A value indicating an exact position within a range, or the upper or lower end of a range.

      Jonix-Comment: this list may be empty
    • asStruct

      public JonixAudienceRange asStruct()
      Specified by:
      asStruct in interface OnixComposite.OnixDataComposite<JonixAudienceRange>