Module jonix.onix3

Class Quantity

java.lang.Object
com.tectonica.jonix.onix3.Quantity
All Implemented Interfaces:
OnixElement<Double>, OnixTag, Serializable

public class Quantity extends Object implements OnixElement<Double>, Serializable

Usage quantity (digital products)

A numeric value representing the maximum permitted quantity of a particular type of usage. Mandatory in each occurrence of the <EpubUsageLimit> composite, and non-repeating.

Format Positive real number, with explicit decimal point when required, or zero, as appropriate for the units specified in <EpubUsageUnit>
Reference name <Quantity>
Short tag <x320>
Cardinality 1
Example <Quantity>10</Quantity>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

    • refname

      public static final String refname
      See Also:
    • shortname

      public static final String shortname
      See Also:
    • datestamp

      public String datestamp
      (type: dt.DateOrDateTime)
    • sourcename

      public String sourcename
      (type: dt.NonEmptyString)
    • sourcetype

      public RecordSourceTypes sourcetype
    • value

      public Double value
      This is the raw content of Quantity. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Positive real number, with explicit decimal point when required, or zero, as appropriate for the units specified in <EpubUsageUnit>

      (type: dt.PositiveDecimalOrZero)

    • EMPTY

      public static final Quantity EMPTY
  • Constructor Details

    • Quantity

      public Quantity()
    • Quantity

      public Quantity(Element element)
  • Method Details