Module jonix.onix3

Class MarketDate

java.lang.Object
com.tectonica.jonix.onix3.MarketDate
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataComposite<JonixMarketDate>, OnixComposite.OnixDataCompositeWithKey<JonixMarketDate,PublishingDateRoles>, OnixTag, Serializable

Market date composite

A group of data elements which together specify a date associated with the publishing status of the product in a specified market, eg ‘local publication date’. Optional, but if known, a date of publication must be specified either here as a ‘local publication date’ or in P.20. Other dates relating to the publication of the product in the specific market may be sent in further repeats of the composite.

Reference name <MarketDate>
Short tag <marketdate>
Cardinality 0…n

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • MarketDate

      public MarketDate()
    • MarketDate

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

      public void ifExists(Consumer<MarketDate> 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
    • marketDateRole

      public MarketDateRole marketDateRole()

      An ONIX code indicating the significance of the date. Mandatory in each occurrence of the <MarketDate> composite, and non-repeating.

      Jonix-Comment: this field is required
    • date

      public Date date()

      The date specified in the <MarketDateRole> field. Mandatory in each occurrence of the <MarketDate> composite, and non-repeating. <Date> may carry a dateformat attribute: if the attribute is missing, then the default format is YYYYMMDD.

      Jonix-Comment: this field is required
    • asStruct

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

      public PublishingDateRoles structKey()
      Specified by:
      structKey in interface OnixComposite.OnixDataCompositeWithKey<JonixMarketDate,PublishingDateRoles>