Module jonix.onix3

Class RegionCode

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

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

Region code

An ONIX code identifying a region with which a contributor is particularly associated. Optional and non-repeatable. There must be an occurrence of either the <CountryCode> or the <RegionCode> elements in each occurrence of <ContributorPlace>. A region is an area which is not a country, but which is precisely defined in geographical terms, eg Northern Ireland, Australian Capital Territory. 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 <RegionCode>
Short tag <b398>
Cardinality 0…1
Example <RegionCode>CA-NL</RegionCode> (Newfoundland and Labrador)

This tag may be included in the following composites:

Possible placements within ONIX message:

See Also:
  • Field Details

  • Constructor Details

    • RegionCode

      public RegionCode()
    • RegionCode

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

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

      public String codeOrNull()
    • descriptionOrNull

      public String descriptionOrNull()