Module jonix.onix2

Class Extent

java.lang.Object
com.tectonica.jonix.onix2.Extent
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataComposite<JonixExtent>, OnixComposite.OnixDataCompositeWithKey<JonixExtent,ExtentTypes>, OnixTag, Serializable

Extent composite

A repeatable group of data elements which together describe an extent pertaining to the product.

Reference name <Extent>
Short tag <extent>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • Extent

      public Extent()
    • Extent

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

      public void ifExists(Consumer<Extent> 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
    • extentType

      public ExtentType extentType()

      An ONIX code which identifies the type of extent carried in the composite, eg running time for an audio or video product. Mandatory in each occurrence of the <Extent> composite, and non-repeating.

      Jonix-Comment: this field is required
    • extentValue

      public ExtentValue extentValue()

      The numeric value of the extent specified in <ExtentType>. Mandatory in each occurrence of the <Extent> composite, and non-repeating.

      Jonix-Comment: this field is required
    • extentUnit

      public ExtentUnit extentUnit()

      An ONIX code indicating the unit used for the <ExtentValue> and the format in which the value is presented. Mandatory in each occurrence of the <Extent> composite, and non-repeating.

      Jonix-Comment: this field is required
    • asStruct

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

      public ExtentTypes structKey()
      Specified by:
      structKey in interface OnixComposite.OnixDataCompositeWithKey<JonixExtent,ExtentTypes>