java.lang.Object
com.tectonica.jonix.onix2.MarketDate
- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixMarketDate>
,OnixComposite.OnixDataCompositeWithKey<JonixMarketDate,
,PublishingDateRoles> OnixTag
,Serializable
public class MarketDate
extends Object
implements OnixComposite.OnixDataCompositeWithKey<JonixMarketDate,PublishingDateRoles>, Serializable
Market date composite
A repeatable group of data elements which together specify a date associated with the publishing status of the product in the market identified in an occurrence of the <MarketRepresentation> composite, eg local publication date.
Reference name | <MarketDate> |
Short tag | <marketdate> |
- Since:
- Onix-2.12
- 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 MarketDate
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
date()
The date specified in the <MarketDateRole> field.An ONIX code indicating the format in which the date is given in <Date>.boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<MarketDate> action) An ONIX code indicating the significance of the date.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
textformat
-
textcase
-
language
-
transliteration
-
datestamp
(type: DateOrDateTime) -
sourcetype
-
sourcename
-
EMPTY
-
-
Constructor Details
-
MarketDate
public MarketDate() -
MarketDate
-
-
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
-
marketDateRole
An ONIX code indicating the significance of the date. Mandatory in each occurrence of the <MarketDate> composite.
Jonix-Comment: this field is required -
date
The date specified in the <MarketDateRole> field. Mandatory in each occurrence of the <MarketDate> composite.
Jonix-Comment: this field is required -
dateFormat
An ONIX code indicating the format in which the date is given in <Date>. Optional and non-repeating. When omitted, the format is assumed to be YYYYMMDD.
Jonix-Comment: this field is optional -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixMarketDate>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixMarketDate,
PublishingDateRoles>
-