Module jonix.onix2

Class MarketDate

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

Market date composite

A repeatable group of data elements which together specify a date associated with the publishing status of the product in the market identified in an occurrence of the <MarketRepresentation> composite, eg local publication date.

Reference name <MarketDate>
Short tag <marketdate>

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-2.12
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.

      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.

      Jonix-Comment: this field is required
    • dateFormat

      public DateFormat dateFormat()

      An ONIX code indicating the format in which the date is given in <Date>. Optional and non-repeating. When omitted, the format is assumed to be YYYYMMDD.

      Jonix-Comment: this field is optional
    • 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>