Module jonix.onix3

Class EpubUsageConstraint

java.lang.Object
com.tectonica.jonix.onix3.EpubUsageConstraint
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixSuperComposite, OnixTag, Serializable

public class EpubUsageConstraint extends Object implements OnixComposite.OnixSuperComposite, Serializable

Usage constraint composite (digital products)

An optional group of data elements which together describe a usage constraint on a digital product (or the absence of such a constraint), whether enforced by DRM technical protection, inherent in the platform used, or specified by license agreement. Repeatable in order to describe multiple constraints on usage.

Reference name <EpubUsageConstraint>
Short tag <epubusageconstraint>
Cardinality 0…n

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • EpubUsageConstraint

      public EpubUsageConstraint()
    • EpubUsageConstraint

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

      public void ifExists(Consumer<EpubUsageConstraint> 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
    • epubUsageType

      public EpubUsageType epubUsageType()

      An ONIX code specifying a usage of a digital product. Mandatory in each occurrence of the <EpubUsageConstraint> composite, and non-repeating.

      Jonix-Comment: this field is required
    • epubUsageStatus

      public EpubUsageStatus epubUsageStatus()

      An ONIX code specifying the status of a usage of a digital product, eg permitted without limit, permitted with limit, prohibited. Mandatory in each occurrence of the <EpubUsageConstraint> composite, and non-repeating.

      Jonix-Comment: this field is required
    • epubUsageLimits

      An optional group of data elements which together specify a quantitative limit on a particular type of usage of a digital product. Repeatable in order to specify two or more limits on the usage type.

      Jonix-Comment: this list may be empty