Module jonix.onix3

Class PrizeRegion

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

public class PrizeRegion extends Object implements OnixElement<Regions>, Serializable

Prize or award region

An ONIX code identifying the region in which a prize or award is given. Optional and non-repeatable. A region is an area which is not a country, but which is precisely defined in geographical terms, eg Newfoundland and Labrador, Florida. If both country and region are specified, the region must be within the country. Note that US States have region codes, while US overseas territories have distinct ISO Country Codes.

Format Variable length code, consisting of upper case letters, with or without a hyphen and further upper case letters or digits. Suggested maximum length 8 characters
Codelist List 49 Where possible and appropriate, country subdivision codes are derived from the UN LOCODE scheme based on ISO 3166-2
Reference name <PrizeRegion>
Short tag <x556>
Cardinality 0…1
Example <PrizeRegion>GB-WLS</PrizeRegion> (Wales)

This tag may be included in the following composites:

Possible placements within ONIX message:

Since:
Onix-3.07
See Also:
  • Field Details

  • Constructor Details

    • PrizeRegion

      public PrizeRegion()
    • PrizeRegion

      public PrizeRegion(Element element)
  • Method Details

    • __v

      public Regions __v()
      Internal API, use the OnixElement.value() method or the OnixElement.value() field instead
      Specified by:
      __v in interface OnixElement<Regions>
    • 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 (<PrizeRegion> or <x556>) is explicitly provided in the ONIX XML
    • ifExists

      public void ifExists(Consumer<PrizeRegion> action)
    • codeOrNull

      public String codeOrNull()
    • descriptionOrNull

      public String descriptionOrNull()