public final class TimeInterval extends MetaOpt implements RefersReq, Interval, Duration
The element timeInterval contains all the data needed to identify a specific time interval. It is built either with two dates or with a date and a duration (exactly two of the ‘start’, ‘end’ and ‘duration’ attributes can be specified). Values of the ‘start’ and ‘end’ attributes are NOT dates, but references to event elements in the corresponding metadata section. The refers attribute is a reference to a temporal concept belonging to the Akoma Ntoso ontology and specified in the references section.
<xsd:element name=“timeInterval”> <xsd:complexType> <xsd:complexContent> <xsd:extension base=“metaopt”> <xsd:attributeGroup ref=“interval”/> <xsd:attributeGroup ref=“duration”/> <xsd:attributeGroup ref=“refersreq”/> <xsd:extension> <xsd:complexContent> <xsd:complexType> <xsd:element>
| Constructor and Description |
|---|
TimeInterval() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AknVisitor visitor) |
com.google.common.collect.ImmutableMap<String,AttributeGetterSetter<AknObject>> |
attributes()
To read attributes.
|
XmlDuration |
getDuration() |
EventRefRef |
getEnd() |
ListReferenceRef |
getRefersTo() |
EventRefRef |
getStart() |
String |
name()
Name of this object (the name of the xml element)
|
void |
setDuration(XmlDuration duration) |
void |
setEnd(EventRefRef end) |
void |
setRefersTo(ListReferenceRef refersTo) |
void |
setStart(EventRefRef start) |
protected void |
toString(ToStringBuilder builder) |
void |
write(XmlWriter writer)
The object implements the write method to save its contents by calling the methods of Output.
|
getEid, getEvolvingId, getGUID, getId, getWid, setEid, setEvolvingId, setGUID, setId, setWid, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompare, nestedComparereadgetAttributes, nestedComparepublic EventRefRef getStart()
public void setStart(EventRefRef start)
public EventRefRef getEnd()
public void setEnd(EventRefRef end)
public XmlDuration getDuration()
getDuration in interface Durationpublic void setDuration(XmlDuration duration)
setDuration in interface Durationpublic ListReferenceRef getRefersTo()
getRefersTo in interface Referspublic void setRefersTo(ListReferenceRef refersTo)
setRefersTo in interface Referspublic void write(XmlWriter writer) throws IOException
The object implements the write method to save its contents by calling the methods of Output.
write in interface Corewrite in interface IdOptwrite in interface Externalizablewrite in class MetaOptwriter - the stream to write the object toIOExceptionpublic String name()
Name of this object (the name of the xml element)
public com.google.common.collect.ImmutableMap<String,AttributeGetterSetter<AknObject>> attributes()
To read attributes.
attributes in interface AknObjectattributes in class AbstractIdprotected void toString(ToStringBuilder builder)
toString in class AbstractIdpublic void accept(AknVisitor visitor)
Copyright © 2017. All rights reserved.