- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixMainSubject>
,OnixTag
,Serializable
Main subject composite
An optional and repeatable group of data elements which together describe a main subject classification or subject heading which is taken from a recognized scheme other than BISAC or BIC.
Reference name | <MainSubject> |
Short tag | <mainsubject> |
- <
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
Modifier and TypeFieldDescription(type: DateOrDateTime)static final MainSubject
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<MainSubject> action) An ONIX code which identifies a subject scheme which is designated for use in a <MainSubject> composite.A subject class or category code from the scheme specified in the <MainSubjectSchemeIdentifier> element.The text of a heading taken from the scheme specified in the <MainSubjectSchemeIdentifier> element; or the text equivalent to the <SubjectCode> value, if both code and text are sent.A number which identifies a version or edition of the subject scheme specified in the associated <MainSubjectSchemeIdentifier> element.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
textformat
-
textcase
-
language
-
transliteration
-
datestamp
(type: DateOrDateTime) -
sourcetype
-
sourcename
-
EMPTY
-
-
Constructor Details
-
MainSubject
public MainSubject() -
MainSubject
-
-
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
-
mainSubjectSchemeIdentifier
An ONIX code which identifies a subject scheme which is designated for use in a <MainSubject> composite. Mandatory in each occurrence of the composite, and non-repeating.
When the scheme listed in the code list display is annotated “Code”, use the associated <SubjectCode> element to carry the value (if so required, the <SubjectHeadingText> element can be used simultaneously to carry the text equivalent of the code). When the scheme is annotated “Text”, use the <SubjectHeadingText> element to carry the text of the subject heading.
Jonix-Comment: this field is required -
subjectCode
A subject class or category code from the scheme specified in the <MainSubjectSchemeIdentifier> element. Either <SubjectCode> or <SubjectHeadingText> or both must be present in each occurrence of the <MainSubject> composite. Non-repeating.
Jonix-Comment: this field is required -
subjectSchemeVersion
A number which identifies a version or edition of the subject scheme specified in the associated <MainSubjectSchemeIdentifier> element. Optional and non-repeating.
Jonix-Comment: this field is optional -
subjectHeadingText
The text of a heading taken from the scheme specified in the <MainSubjectSchemeIdentifier> element; or the text equivalent to the <SubjectCode> value, if both code and text are sent. Either <SubjectCode> or <SubjectHeadingText> or both must be present in each occurrence of the <MainSubject> composite. Non-repeating.
Jonix-Comment: this field is optional -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixMainSubject>
-