java.lang.Object
com.tectonica.jonix.onix3.CountryCode
- All Implemented Interfaces:
OnixElement<Countrys>
,OnixTag
,Serializable
Country code
An ONIX code identifying a country 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>.
Format | Fixed length, two letters, based on ISO 3166-1. Note that ISO 3166-1 specifies that country codes shall be sent as upper case only |
Codelist | List 91 |
Reference name | <CountryCode> |
Short tag | <b251> |
Cardinality | 0…1 |
Example | <CountryCode>US</CountryCode> |
Product
⯈DescriptiveDetail
⯈Contributor
⯈ContributorPlace
⯈CountryCode
Product
⯈ContentDetail
⯈ContentItem
⯈Contributor
⯈ContributorPlace
⯈CountryCode
Product
⯈PromotionDetail
⯈PromotionalEvent
⯈Contributor
⯈ContributorPlace
⯈CountryCode
Product
⯈DescriptiveDetail
⯈Collection
⯈Contributor
⯈ContributorPlace
⯈CountryCode
Product
⯈PromotionDetail
⯈PromotionalEvent
⯈EventOccurrence
⯈CountryCode
Product
⯈DescriptiveDetail
⯈Language
⯈CountryCode
Product
⯈ContentDetail
⯈ContentItem
⯈Language
⯈CountryCode
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(type: dt.DateOrDateTime)static final CountryCode
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<CountryCode> 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
-
CountryCode
public CountryCode() -
CountryCode
-
-
Method Details
-
__v
Internal API, use theOnixElement.value()
method or theOnixElement.value()
field instead- Specified by:
__v
in interfaceOnixElement<Countrys>
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-
codeOrNull
-
descriptionOrNull
-