Module jonix.onix3

Class Percent

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

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

Percentage

The percentage of the unit value of the product that is assignable to a designated product classification. Optional and non-repeating. Used when a mixed product (eg book and CD) belongs partly to two or more product classes within a particular scheme. If omitted, the product classification code applies to 100% of the product.

Format Real number between zero and 100 (inclusive), with explicit decimal point when required, suggested maximum length 7 characters
Reference name <Percent>
Short tag <b337>
Cardinality 0…1
Example <Percent>66.67</Percent>

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 Percent. Could be null if exists() == false. Use OnixElement.value() instead if you want to get this as an Optional.

      Raw Format: Real number between zero and 100 (inclusive), with explicit decimal point when required, suggested maximum length 7 characters

      (type: dt.PercentDecimal)

    • EMPTY

      public static final Percent EMPTY
  • Constructor Details

    • Percent

      public Percent()
    • Percent

      public Percent(Element element)
  • Method Details