Module jonix.onix2

Class PriceAmount

java.lang.Object
com.tectonica.jonix.onix2.PriceAmount
All Implemented Interfaces:
OnixElement<String>, OnixTag, Serializable

@Deprecated public class PriceAmount extends Object implements OnixElement<String>, Serializable
Deprecated.

Price amount

The amount of a unit price. This price amount element, outside of the <Price> composite, may be used if and only if a default price type and currency have been specified in the message header, and only one price is to be given. The element is retained for purposes of upwards compatibility only, and all new implementations should use the <Price> composite.

Format Variable length real number, with explicit decimal point when required, suggested maximum length 12 characters
Reference name <PriceAmount>
Short tag <j151>
Example <j151>18.99</j151>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

    • refname

      public static final String refname
      Deprecated.
      See Also:
    • shortname

      public static final String shortname
      Deprecated.
      See Also:
    • textformat

      public TextFormats textformat
      Deprecated.
    • textcase

      public TextCaseFlags textcase
      Deprecated.
    • language

      public Languages language
      Deprecated.
    • transliteration

      public TransliterationSchemes transliteration
      Deprecated.
    • datestamp

      public String datestamp
      Deprecated.
      (type: DateOrDateTime)
    • sourcetype

      public RecordSourceTypes sourcetype
      Deprecated.
    • sourcename

      public String sourcename
      Deprecated.
    • value

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

      Raw Format: Variable length real number, with explicit decimal point when required, suggested maximum length 12 characters

      (type: NonEmptyString)

    • EMPTY

      public static final PriceAmount EMPTY
      Deprecated.
  • Constructor Details

    • PriceAmount

      public PriceAmount()
      Deprecated.
    • PriceAmount

      public PriceAmount(Element element)
      Deprecated.
  • Method Details

    • __v

      public String __v()
      Deprecated.
      Internal API, use the OnixElement.value() method or the OnixElement.value() field instead
      Specified by:
      __v in interface OnixElement<String>
    • exists

      public boolean exists()
      Deprecated.
      Description copied from interface: OnixTag
      indicates whether this tag exists in the ONIX record
      Specified by:
      exists in interface OnixTag
      Returns:
      whether this tag (<PriceAmount> or <j151>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<PriceAmount> action)
      Deprecated.