java.lang.Object
com.tectonica.jonix.onix2.Language
- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixLanguage>
,OnixComposite.OnixDataCompositeWithKey<JonixLanguage,
,LanguageRoles> OnixTag
,Serializable
public class Language
extends Object
implements OnixComposite.OnixDataCompositeWithKey<JonixLanguage,LanguageRoles>, Serializable
Language composite
A repeatable group of data elements which together represent a language, and specify its role and, where required, whether it is a country variant.
Reference name | <Language> |
Short tag | <language> |
- <
Product
>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tectonica.jonix.common.OnixComposite
OnixComposite.OnixDataComposite<V extends JonixStruct>, OnixComposite.OnixDataCompositeUncommon, OnixComposite.OnixDataCompositeWithKey<V extends JonixKeyedStruct<K>,
K extends Enum<K> & OnixCodelist>, OnixComposite.OnixSuperComposite -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
A code identifying the country when this specifies a variant of the language, eg US English.boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
An ISO code indicating a language.An ONIX code indicating the “role” of a language in the context of the ONIX record.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
textformat
-
textcase
-
language
-
transliteration
-
datestamp
(type: DateOrDateTime) -
sourcetype
-
sourcename
-
EMPTY
-
-
Constructor Details
-
Language
public Language() -
Language
-
-
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 interfaceOnixComposite
-
exists
public boolean exists()Description copied from interface:OnixTag
indicates whether this tag exists in the ONIX record -
ifExists
-
getXmlElement
Description copied from interface:OnixComposite
For advanced use-cases only.- Specified by:
getXmlElement
in interfaceOnixComposite
- Returns:
- native representation of the XML element underlying to this tag
-
languageRole
An ONIX code indicating the “role” of a language in the context of the ONIX record. Mandatory in each occurrence of the <Language> composite, and non-repeating.
Jonix-Comment: this field is required -
languageCode
An ISO code indicating a language. Mandatory in each occurrence of the <Language> composite, and non-repeating.
Jonix-Comment: this field is required -
countryCode
A code identifying the country when this specifies a variant of the language, eg US English. Optional and non-repeating.
Jonix-Comment: this field is optional -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixLanguage>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixLanguage,
LanguageRoles>
-