Module jonix.onix3

Class EpubLicenseDate

java.lang.Object
com.tectonica.jonix.onix3.EpubLicenseDate
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataComposite<JonixEpubLicenseDate>, OnixComposite.OnixDataCompositeWithKey<JonixEpubLicenseDate,EpublicationLicenseDateRoles>, OnixTag, Serializable

Digital product license date

An optional group of date elements which together specify a date associated with the license in an occurrence of the <EpubLicense> composite, eg a date when a license expires. Repeatable to specify different dates with their various roles.

Note that if no dates are specified, the license is effective at the time the ONIX message is sent.

Reference name <EpubLicenseDate>
Short tag <epublicensedate>
Cardinality 0…n

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-3.10
See Also:
  • Field Details

  • Constructor Details

    • EpubLicenseDate

      public EpubLicenseDate()
    • EpubLicenseDate

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

      public void ifExists(Consumer<EpubLicenseDate> 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
    • epubLicenseDateRole

      public EpubLicenseDateRole epubLicenseDateRole()

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

      Jonix-Comment: this field is required
    • date

      public Date date()

      The date specified in the <EpubLicenseDateRole> field. Mandatory in each occurrence of the <EpubLicenseDate> 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 JonixEpubLicenseDate asStruct()
      Specified by:
      asStruct in interface OnixComposite.OnixDataComposite<JonixEpubLicenseDate>
    • structKey

      public EpublicationLicenseDateRoles structKey()
      Specified by:
      structKey in interface OnixComposite.OnixDataCompositeWithKey<JonixEpubLicenseDate,EpublicationLicenseDateRoles>