org.ota.hotel
Class PostEventRQ.Sites

java.lang.Object
  extended by org.ota.hotel.PostEventRQ.Sites
Enclosing class:
PostEventRQ

public static class PostEventRQ.Sites
extends java.lang.Object

A collection of sites for which a post event report is being requested. Provides the ability to request information for a site or group of sites without the specific details of an event. Typically this would be a batch transmission of post event history. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="Sites" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Site" maxOccurs="unbounded">
         <xs:complexType>
           <xs:attributeGroup ref="ns:HotelReferenceGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:DateTimeSpanType" name="Date" minOccurs="0" maxOccurs="99"/>
     </xs:sequence>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
PostEventRQ.Sites()
           
 
Method Summary
 void addDate(DateTimeSpan item)
          Add a 'Date' element item.
 void addSite(HotelReferenceGroup item)
          Add a 'Site' element item.
 void clearDates()
          Remove all 'Date' element items.
 void clearSites()
          Remove all 'Site' element items.
 DateTimeSpan getDate(int index)
          Get 'Date' element item by position.
 java.util.List<DateTimeSpan> getDates()
          Get the list of 'Date' element items.
 HotelReferenceGroup getSite(int index)
          Get 'Site' element item by position.
 java.util.List<HotelReferenceGroup> getSites()
          Get the list of 'Site' element items.
 void setDates(java.util.List<DateTimeSpan> list)
          Set the list of 'Date' element items.
 void setSites(java.util.List<HotelReferenceGroup> list)
          Set the list of 'Site' element items.
 int sizeDates()
          Get the number of 'Date' element items.
 int sizeSites()
          Get the number of 'Site' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostEventRQ.Sites

public PostEventRQ.Sites()
Method Detail

getSites

public java.util.List<HotelReferenceGroup> getSites()
Get the list of 'Site' element items. A location for which a post event report is being requested.

Returns:
list

setSites

public void setSites(java.util.List<HotelReferenceGroup> list)
Set the list of 'Site' element items. A location for which a post event report is being requested.

Parameters:
list -

sizeSites

public int sizeSites()
Get the number of 'Site' element items.

Returns:
count

addSite

public void addSite(HotelReferenceGroup item)
Add a 'Site' element item.

Parameters:
item -

getSite

public HotelReferenceGroup getSite(int index)
Get 'Site' element item by position.

Parameters:
index -
Returns:
item

clearSites

public void clearSites()
Remove all 'Site' element items.


getDates

public java.util.List<DateTimeSpan> getDates()
Get the list of 'Date' element items. Date or date range for this site or sites.

Returns:
list

setDates

public void setDates(java.util.List<DateTimeSpan> list)
Set the list of 'Date' element items. Date or date range for this site or sites.

Parameters:
list -

sizeDates

public int sizeDates()
Get the number of 'Date' element items.

Returns:
count

addDate

public void addDate(DateTimeSpan item)
Add a 'Date' element item.

Parameters:
item -

getDate

public DateTimeSpan getDate(int index)
Get 'Date' element item by position.

Parameters:
index -
Returns:
item

clearDates

public void clearDates()
Remove all 'Date' element items.