java.lang.Object
com.tectonica.jonix.onix3.RegionCode
- All Implemented Interfaces:
OnixElement<Regions>
,OnixTag
,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) |
Product
⯈DescriptiveDetail
⯈Contributor
⯈ContributorPlace
⯈RegionCode
Product
⯈ContentDetail
⯈ContentItem
⯈Contributor
⯈ContributorPlace
⯈RegionCode
Product
⯈PromotionDetail
⯈PromotionalEvent
⯈Contributor
⯈ContributorPlace
⯈RegionCode
Product
⯈DescriptiveDetail
⯈Collection
⯈Contributor
⯈ContributorPlace
⯈RegionCode
Product
⯈PromotionDetail
⯈PromotionalEvent
⯈EventOccurrence
⯈RegionCode
Product
⯈DescriptiveDetail
⯈Language
⯈RegionCode
Product
⯈ContentDetail
⯈ContentItem
⯈Language
⯈RegionCode
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final RegionCode
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription__v()
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field insteadboolean
exists()
indicates whether this tag exists in the ONIX recordvoid
ifExists
(Consumer<RegionCode> action) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tectonica.jonix.common.OnixElement
equal, is, isNull, value
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
value
-
EMPTY
-
-
Constructor Details
-
RegionCode
public RegionCode() -
RegionCode
-
-
Method Details
-
__v
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field instead- Specified by:
__v
in interfaceOnixElement<Regions>
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-
codeOrNull
-
descriptionOrNull
-