- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixSuperComposite
,OnixTag
,Serializable
Supporting text content composite
An optional group of data elements which together carry a supporting text related to the product, repeatable in order to deliver multiple texts (often of different types, though for some text types there many be multiple instances of that type).
Reference name | <TextContent> |
Short tag | <textcontent> |
Cardinality | 0…n |
- 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: dt.DateOrDateTime)static final TextContent
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.An ONIX code which identifies the audience for which the text in the <Text> element is intended.An optional group of data elements which together specify a date associated with the text carried in an occurrence of the <TextContent> composite, eg date when quoted text was published.Jonix-Comment: this list may be emptyAn optional group of data elements which together describe a usage constraint on the supporting text sent in <Text> (or the absence of such a constraint).boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<TextContent> action) An optional group of data elements which together specify a ‘star rating’ awarded as part of a review of the publication, used when <TextType> indicates the text is a review.A number which specifies a single overall sequence of supporting texts.The title of a publication from which the text sent in the <Text> element was taken, eg if it is a review quote.A group of data elements which together define a territory for which the text in the <Text> element is specifically intended.The name of an author of text sent in the <Text> element, eg if it is a review or promotional quote.texts()
The text specified in the <TextType> element.The name of a company or corporate body responsible for the text sent in the <Text> element.Brief text describing or providing context for the text author or corporate source, at the publisher’s discretion, and intended to be used in addition to <TextAuthor> or <TextSourceCorporate>.A URL which provides a link to a full text accessible in digital form, from which the supporting text in <Text> is an extract.textType()
An ONIX code which identifies the type of text which is sent in the <Text> element.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
TextContent
public TextContent() -
TextContent
-
-
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
-
textType
An ONIX code which identifies the type of text which is sent in the <Text> element. Mandatory in each occurrence of the <TextContent> composite, and non-repeating.
Jonix-Comment: this field is required -
contentAudiences
An ONIX code which identifies the audience for which the text in the <Text> element is intended. Mandatory in each occurrence of the <TextContent> composite, and repeatable.
Jonix-Comment: this list is required to contain at least one item -
texts
The text specified in the <TextType> element. Mandatory in each occurrence of the <TextContent> composite, and repeatable when essentially identical text is supplied in multiple languages. The language attribute is optional for a single instance of <Text>, but must be included in each instance if <Text> is repeated.
Jonix-Comment: this list is required to contain at least one item -
sequenceNumber
A number which specifies a single overall sequence of supporting texts. Optional and non-repeating. It is strongly recommended that if any occurrence of the <TextContent> composite of a specific <TextType> carries a <SequenceNumber>, then all of that type should carry a <SequenceNumber> – though there is no requirement to number supporting texts where there is a single instance of that type.
Jonix-Comment: this field is optional -
territory
A group of data elements which together define a territory for which the text in the <Text> element is specifically intended. Optional in each occurrence of the <TextContent> composite, and non-repeating. If omitted, the text is intended for use wherever the product may be sold (see Territorial sales rights in Group P.21). If included, the text should be used by recipients in the specified territory only, and in preference to any text that lacks a specified territory.
For valid combinations of <CountriesIncluded>, <RegionsIncluded> etc within <Territory>, see the notes describing the use of <Territory> within Group P.21.
Care should be taken to avoid ambiguities (for example two different ‘short descriptions’ – without language attributes or with the same language attribute – marked for use in the same country or region), and to ensure that appropriate descriptions and supporting text are supplied for all countries and regions where the product may be sold. The simplest way to accomplish the latter is to ensure at least one version of the text does not have a territory specified. Where multiple texts of the same type are provided, those without specific <Territory> composites are intended for use only where no appropriate targeted text is present.
Jonix-Comment: this field is optional -
reviewRating
An optional group of data elements which together specify a ‘star rating’ awarded as part of a review of the publication, used when <TextType> indicates the text is a review. Not repeatable.
Jonix-Comment: this field is optional -
textSourceCorporate
The name of a company or corporate body responsible for the text sent in the <Text> element. Optional and non-repeating.
Jonix-Comment: this field is optional -
textAuthors
The name of an author of text sent in the <Text> element, eg if it is a review or promotional quote. Optional, and repeatable if the text is jointly authored.
Jonix-Comment: this list may be empty -
textSourceDescriptions
Brief text describing or providing context for the text author or corporate source, at the publisher’s discretion, and intended to be used in addition to <TextAuthor> or <TextSourceCorporate>. Optional, and repeatable to provide parallel descriptions in multiple languages. The language attribute is optional for a single instance of <TextSourceDescription>, but must be included in each instance if <TextSourceDescription> is repeated. The description may be used with either a person or corporate name, to draw attention to any aspect of the text source’s background which provides context for the text in <Text>.
Jonix-Comment: this list may be empty -
sourceTitles
The title of a publication from which the text sent in the <Text> element was taken, eg if it is a review quote. Optional, and repeatable to provide the title in multiple languages. The language attribute is optional for a single instance of <SourceTitle>, but must be included in each instance if <SourceTitle> is repeated.
Jonix-Comment: this list may be empty -
textSourceLinks
A URL which provides a link to a full text accessible in digital form, from which the supporting text in <Text> is an extract. Use, for example, to link to an original review. Optional, and repeatable if the resource can be linked in more than one way, eg by URL or DOI, or where a linked full text is available in multiple parallel languages. Where multiple languages are used, all repeats must carry the language attribute.
Jonix-Comment: this list may be empty -
epubUsageConstraints
An optional group of data elements which together describe a usage constraint on the supporting text sent in <Text> (or the absence of such a constraint). Repeatable in order to describe multiple constraints on usage.
Jonix-Comment: this list may be empty -
epubLicenses
Jonix-Comment: this list may be empty -
contentDates
An optional group of data elements which together specify a date associated with the text carried in an occurrence of the <TextContent> composite, eg date when quoted text was published. Repeatable to specify different dates with their various roles.
Jonix-Comment: this list may be empty
-