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>

Technical notes about <Quantity> from the schema author: Number of copies, of words, of users, of days or months (according to the Quantity unit), used in usage and price constraints, discounts etc 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