org.ota.shared
Class DateTimeSpanGroup

java.lang.Object
  extended by org.ota.shared.DateTimeSpanGroup

public class DateTimeSpanGroup
extends java.lang.Object

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

DateTimeSpanGroup

public DateTimeSpanGroup()
Method Detail

getStart

public java.lang.String getStart()
Get the 'Start' attribute value. The starting value of the time span.

Returns:
value

setStart

public void setStart(java.lang.String start)
Set the 'Start' attribute value. The starting value of the time span.

Parameters:
start -

getDuration

public java.lang.String getDuration()
Get the 'Duration' attribute value. The duration datatype represents a combination of year, month, day and time values representing a single duration of time, encoded as a single string.

Returns:
value

setDuration

public void setDuration(java.lang.String duration)
Set the 'Duration' attribute value. The duration datatype represents a combination of year, month, day and time values representing a single duration of time, encoded as a single string.

Parameters:
duration -

getEnd

public java.lang.String getEnd()
Get the 'End' attribute value. The ending value of the time span.

Returns:
value

setEnd

public void setEnd(java.lang.String end)
Set the 'End' attribute value. The ending value of the time span.

Parameters:
end -