|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ota.shared.DateTimeSpanGroup
public class DateTimeSpanGroup
The attributes of the OTA DateTimeSpan data type are based on the W3C base data types of timeInstant and timeDuration. The lexical representation for timeDuration is the [ISO 8601] extended format PnYn MnDTnH nMnS, where nY represents the number of years, nM the number of months, nD the number of days, 'T' is the date/time separator, nH the number of hours, nM the number of minutes and nS the number of seconds. The number of seconds can include decimal digits to arbitrary precision. As an example, 7 months, 2 days, 2hours and 30 minutes would be expressed as P0Y7M2DT2H30M0S. Truncated representations are allowed provided they conform to ISO 8601 format. Time periods, i.e. specific durations of time, can be represented by supplying two items of information: a start instant and a duration or a start instant and an end instant or an end instant and a duration. The OTA standards use the XML mapping that provides for two elements to represent the specific period of time; a startInstant and a duration. Schema fragment(s) for this class:
<xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="DateTimeSpanGroup"> <xs:attribute type="xs:string" use="optional" name="Start"/> <xs:attribute type="xs:string" use="optional" name="Duration"/> <xs:attribute type="xs:string" use="optional" name="End"/> </xs:attributeGroup>
Constructor Summary | |
---|---|
DateTimeSpanGroup()
|
Method Summary | |
---|---|
java.lang.String |
getDuration()
Get the 'Duration' attribute value. |
java.lang.String |
getEnd()
Get the 'End' attribute value. |
java.lang.String |
getStart()
Get the 'Start' attribute value. |
void |
setDuration(java.lang.String duration)
Set the 'Duration' attribute value. |
void |
setEnd(java.lang.String end)
Set the 'End' attribute value. |
void |
setStart(java.lang.String start)
Set the 'Start' attribute value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateTimeSpanGroup()
Method Detail |
---|
public java.lang.String getStart()
public void setStart(java.lang.String start)
start
- public java.lang.String getDuration()
public void setDuration(java.lang.String duration)
duration
- public java.lang.String getEnd()
public void setEnd(java.lang.String end)
end
-
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |