- All Implemented Interfaces:
OnixComposite
,OnixComposite.OnixDataComposite<JonixOccurrenceDate>
,OnixComposite.OnixDataCompositeWithKey<JonixOccurrenceDate,
,EventOccurrenceDateRoles> OnixTag
,Serializable
Event occurrence date composite
A group of data elements which together specify a date associated with the event occurrence. At least the date (and typically also the time) the event occurrence begins must be specified, and other dates related to the event occurrence can be sent in further repeats of the composite.
Reference name | <OccurrenceDate> |
Short tag | <occurrencedate> |
Cardinality | 1…n |
- Since:
- Onix-3.07
- 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 OccurrenceDate
static final String
static final String
(type: dt.NonEmptyString) -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This is an internal API.asStruct()
date()
The date specified in the <OccurrenceDateRole> field.boolean
exists()
indicates whether this tag exists in the ONIX recordFor advanced use-cases only.void
ifExists
(Consumer<OccurrenceDate> action) An ONIX code indicating the significance of the date, eg the date of the occurrence, last date of ticket availability etc.
-
Field Details
-
refname
- See Also:
-
shortname
- See Also:
-
datestamp
(type: dt.DateOrDateTime) -
sourcename
(type: dt.NonEmptyString) -
sourcetype
-
EMPTY
-
-
Constructor Details
-
OccurrenceDate
public OccurrenceDate() -
OccurrenceDate
-
-
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
-
occurrenceDateRole
An ONIX code indicating the significance of the date, eg the date of the occurrence, last date of ticket availability etc. Mandatory in each instance of the <OccurrenceDate> composite, and non-repeating.
Jonix-Comment: this field is required -
date
The date specified in the <OccurrenceDateRole> field. Mandatory in each occurrence of the <OccurrenceDate> composite, and non-repeating. <Date> may carry a dateformat attribute: if the attribute is missing, then the default format is YYYYMMDDThhmm (local time at the venue). Note that this date format may include a time zone offset (Z for times in UTC, or ±hhmm), and this should always be included where there is any doubt, eg when the event is available online.
Jonix-Comment: this field is required -
asStruct
- Specified by:
asStruct
in interfaceOnixComposite.OnixDataComposite<JonixOccurrenceDate>
-
structKey
- Specified by:
structKey
in interfaceOnixComposite.OnixDataCompositeWithKey<JonixOccurrenceDate,
EventOccurrenceDateRoles>
-