Module jonix.onix2

Class Prize

java.lang.Object
com.tectonica.jonix.onix2.Prize
All Implemented Interfaces:
OnixComposite, OnixComposite.OnixDataCompositeUncommon, OnixTag, Serializable

public class Prize extends Object implements OnixComposite.OnixDataCompositeUncommon, Serializable

Prize or award composite

A repeatable group of data elements which together describe a prize or award won by the product.

Reference name <Prize>
Short tag <prize>

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • Prize

      public Prize()
    • Prize

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

      public void ifExists(Consumer<Prize> 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
    • prizeName

      public PrizeName prizeName()

      The name of a prize or award which the product has received. Mandatory in each occurrence of the <Prize> composite, and non-repeating.

      Jonix-Comment: this field is required
    • prizeYear

      public PrizeYear prizeYear()

      The year in which a prize or award was given. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • prizeCountry

      public PrizeCountry prizeCountry()

      An ISO standard code identifying the country in which a prize or award is given. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • prizeCode

      public PrizeCode prizeCode()

      An ONIX code indicating the achievement of the product in relation to a prize or award, eg winner, runner-up, shortlisted. Optional and non-repeating.

      Jonix-Comment: this field is optional
    • prizeJury

      public PrizeJury prizeJury()

      Free text listing members of the jury that awarded the prize. Optional and non-repeating.

      Jonix-Comment: this field is optional