java.lang.Object
com.tectonica.jonix.onix3.ContentDate
- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixContentDate>
,OnixComposite.OnixDataCompositeWithKey<JonixContentDate,
,ContentDateRoles> OnixTag
,Serializable
public class ContentDate
extends Object
implements OnixComposite.OnixDataCompositeWithKey<JonixContentDate,ContentDateRoles>, Serializable
Content date composite
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.
Reference name | <ContentDate> |
Short tag | <contentdate> |
Cardinality | 0…n |
Product
⯈ContentDetail
⯈ContentItem
⯈TextContent
⯈ContentDate
Product
⯈CollateralDetail
⯈TextContent
⯈ContentDate
Product
⯈ContentDetail
⯈ContentItem
⯈CitedContent
⯈ContentDate
Product
⯈CollateralDetail
⯈CitedContent
⯈ContentDate
Product
⯈ContentDetail
⯈ContentItem
⯈SupportingResource
⯈ResourceVersion
⯈ContentDate
Product
⯈CollateralDetail
⯈SupportingResource
⯈ResourceVersion
⯈ContentDate
Product
⯈PromotionDetail
⯈PromotionalEvent
⯈EventOccurrence
⯈SupportingResource
⯈ResourceVersion
⯈ContentDate
Product
⯈PromotionDetail
⯈PromotionalEvent
⯈SupportingResource
⯈ResourceVersion
⯈ContentDate
- 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 ContentDate
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
An ONIX code indicating the significance of the date in relation to the text content.date()
The date specified in the <ContentDateRole> field.boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<ContentDate> action)
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
ContentDate
public ContentDate() -
ContentDate
-
-
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
-
contentDateRole
An ONIX code indicating the significance of the date in relation to the text content. Mandatory in each occurrence of the <ContentDate> composite, and non-repeating.
Jonix-Comment: this field is required -
date
The date specified in the <ContentDateRole> field. Mandatory in each occurrence of the <ContentDate> composite, and non-repeating. <Date> may carry a dateformat attribute: if the attribute is missing, then the default format is YYYYMMDD.
Jonix-Comment: this field is required -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixContentDate>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixContentDate,
ContentDateRoles>
-