org.ota.hotel
Class HotelDescriptiveContent.AreaInfo.Attractions

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.AreaInfo.Attractions
Enclosing class:
HotelDescriptiveContent.AreaInfo

public static class HotelDescriptiveContent.AreaInfo.Attractions
extends java.lang.Object

A collection of Attraction objects identifying the local interest attractions in the vicinity of this hotel facility. 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="Attractions" minOccurs="0">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="Attraction" maxOccurs="unbounded">
         <!-- Reference to inner class Attraction -->
       </xs:element>
     </xs:sequence>
     <xs:attribute type="xs:dateTime" use="optional" name="LastUpdated"/>
   </xs:complexType>
 </xs:element>
 


Nested Class Summary
static class HotelDescriptiveContent.AreaInfo.Attractions.Attraction
          This identifies an item of local interest (e.g.
 
Constructor Summary
HotelDescriptiveContent.AreaInfo.Attractions()
           
 
Method Summary
 void addAttraction(HotelDescriptiveContent.AreaInfo.Attractions.Attraction item)
          Add a 'Attraction' element item.
 void clearAttractions()
          Remove all 'Attraction' element items.
 HotelDescriptiveContent.AreaInfo.Attractions.Attraction getAttraction(int index)
          Get 'Attraction' element item by position.
 java.util.List<HotelDescriptiveContent.AreaInfo.Attractions.Attraction> getAttractions()
          Get the list of 'Attraction' element items.
 java.util.Date getLastUpdated()
          Get the 'LastUpdated' attribute value.
 void setAttractions(java.util.List<HotelDescriptiveContent.AreaInfo.Attractions.Attraction> list)
          Set the list of 'Attraction' element items.
 void setLastUpdated(java.util.Date lastUpdated)
          Set the 'LastUpdated' attribute value.
 int sizeAttractions()
          Get the number of 'Attraction' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.AreaInfo.Attractions

public HotelDescriptiveContent.AreaInfo.Attractions()
Method Detail

getAttractions

public java.util.List<HotelDescriptiveContent.AreaInfo.Attractions.Attraction> getAttractions()
Get the list of 'Attraction' element items.

Returns:
list

setAttractions

public void setAttractions(java.util.List<HotelDescriptiveContent.AreaInfo.Attractions.Attraction> list)
Set the list of 'Attraction' element items.

Parameters:
list -

sizeAttractions

public int sizeAttractions()
Get the number of 'Attraction' element items.

Returns:
count

addAttraction

public void addAttraction(HotelDescriptiveContent.AreaInfo.Attractions.Attraction item)
Add a 'Attraction' element item.

Parameters:
item -

getAttraction

public HotelDescriptiveContent.AreaInfo.Attractions.Attraction getAttraction(int index)
Get 'Attraction' element item by position.

Parameters:
index -
Returns:
item

clearAttractions

public void clearAttractions()
Remove all 'Attraction' element items.


getLastUpdated

public java.util.Date getLastUpdated()
Get the 'LastUpdated' attribute value. The date and time when Attractions was last updated.

Returns:
value

setLastUpdated

public void setLastUpdated(java.util.Date lastUpdated)
Set the 'LastUpdated' attribute value. The date and time when Attractions was last updated.

Parameters:
lastUpdated -