org.ota.hotel
Class HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo
Enclosing class:
HotelDescriptiveContent.HotelInfo.WeatherInfos

public static class HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo
extends java.lang.Object

Provides detailed information regarding weather. 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" type="ns:WeatherInfoType" name="WeatherInfo" maxOccurs="unbounded"/>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="WeatherInfoType">
   <xs:sequence>
     <xs:element name="Precipitation" minOccurs="0" maxOccurs="2">
       <!-- Reference to inner class Precipitation -->
     </xs:element>
     <xs:element name="Temperature" minOccurs="0" maxOccurs="2">
       <!-- Reference to inner class Temperature -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:string" use="optional" name="Period"/>
 </xs:complexType>
 


Nested Class Summary
static class HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation
          Provides average precipitation and the unit in which it is measured for a Period.
static class HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature
          Provides average temperatures and the unit in which they are measured for a Period.
 
Constructor Summary
HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo()
           
 
Method Summary
 void addPrecipitation(HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation item)
          Add a 'Precipitation' element item.
 void addTemperature(HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature item)
          Add a 'Temperature' element item.
 void clearPrecipitations()
          Remove all 'Precipitation' element items.
 void clearTemperatures()
          Remove all 'Temperature' element items.
 java.lang.String getPeriod()
          Get the 'Period' attribute value.
 HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation getPrecipitation(int index)
          Get 'Precipitation' element item by position.
 java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation> getPrecipitations()
          Get the list of 'Precipitation' element items.
 HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature getTemperature(int index)
          Get 'Temperature' element item by position.
 java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature> getTemperatures()
          Get the list of 'Temperature' element items.
 void setPeriod(java.lang.String period)
          Set the 'Period' attribute value.
 void setPrecipitations(java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation> list)
          Set the list of 'Precipitation' element items.
 void setTemperatures(java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature> list)
          Set the list of 'Temperature' element items.
 int sizePrecipitations()
          Get the number of 'Precipitation' element items.
 int sizeTemperatures()
          Get the number of 'Temperature' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo

public HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo()
Method Detail

getPrecipitations

public java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation> getPrecipitations()
Get the list of 'Precipitation' element items. Provides detailed information regarding weather.

Returns:
list

setPrecipitations

public void setPrecipitations(java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation> list)
Set the list of 'Precipitation' element items. Provides detailed information regarding weather.

Parameters:
list -

sizePrecipitations

public int sizePrecipitations()
Get the number of 'Precipitation' element items.

Returns:
count

addPrecipitation

public void addPrecipitation(HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation item)
Add a 'Precipitation' element item.

Parameters:
item -

getPrecipitation

public HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Precipitation getPrecipitation(int index)
Get 'Precipitation' element item by position.

Parameters:
index -
Returns:
item

clearPrecipitations

public void clearPrecipitations()
Remove all 'Precipitation' element items.


getTemperatures

public java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature> getTemperatures()
Get the list of 'Temperature' element items. Provides detailed information regarding weather.

Returns:
list

setTemperatures

public void setTemperatures(java.util.List<HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature> list)
Set the list of 'Temperature' element items. Provides detailed information regarding weather.

Parameters:
list -

sizeTemperatures

public int sizeTemperatures()
Get the number of 'Temperature' element items.

Returns:
count

addTemperature

public void addTemperature(HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature item)
Add a 'Temperature' element item.

Parameters:
item -

getTemperature

public HotelDescriptiveContent.HotelInfo.WeatherInfos.WeatherInfo.Temperature getTemperature(int index)
Get 'Temperature' element item by position.

Parameters:
index -
Returns:
item

clearTemperatures

public void clearTemperatures()
Remove all 'Temperature' element items.


getPeriod

public java.lang.String getPeriod()
Get the 'Period' attribute value. This may be used to define a time period for which a certain type of weather occurs (e.g. January or Spring).

Returns:
value

setPeriod

public void setPeriod(java.lang.String period)
Set the 'Period' attribute value. This may be used to define a time period for which a certain type of weather occurs (e.g. January or Spring).

Parameters:
period -