org.ota.hotel
Class BasicPropertyInfo

java.lang.Object
  extended by org.ota.hotel.BasicPropertyInfo

public class BasicPropertyInfo
extends java.lang.Object

An abbreviated short summary of hotel descriptive information. Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="BasicPropertyInfoType">
   <xs:sequence>
     <xs:element type="ns:VendorMessagesType" name="VendorMessages" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element name="Position" minOccurs="0">
       <xs:complexType>
         <xs:attributeGroup ref="ns:PositionGroup"/>
       </xs:complexType>
     </xs:element>
     <xs:element type="ns:AddressInfoType" name="Address" minOccurs="0"/>
     <xs:element name="ContactNumbers" minOccurs="0">
       <!-- Reference to inner class ContactNumbers -->
     </xs:element>
     <xs:element name="Award" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Award -->
     </xs:element>
     <xs:element type="ns:RelativePositionType" name="RelativePosition" minOccurs="0"/>
     <xs:element name="HotelAmenity" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class HotelAmenity -->
     </xs:element>
     <xs:element name="Recreation" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Recreation -->
     </xs:element>
     <xs:element name="Service" minOccurs="0" maxOccurs="5">
       <!-- Reference to inner class Service -->
     </xs:element>
     <xs:element name="Policy" minOccurs="0">
       <!-- Reference to inner class Policy -->
     </xs:element>
   </xs:sequence>
   <xs:attributeGroup ref="ns:HotelReferenceGroup"/>
   <xs:attribute type="xs:string" use="optional" name="HotelSegmentCategoryCode"/>
   <xs:attribute type="xs:int" use="optional" name="SupplierIntegrationLevel"/>
   <xs:attribute type="xs:int" use="optional" name="MaxGroupRoomQuantity"/>
 </xs:complexType>
 


Nested Class Summary
static class BasicPropertyInfo.Award
          An element that identifies the hotel ratings.
static class BasicPropertyInfo.ContactNumbers
          Collection of hotel contact numbers.
static class BasicPropertyInfo.HotelAmenity
          Hotel-level amenities (pool, etc) for searching.
static class BasicPropertyInfo.Policy
          Policy information for this hotel.
static class BasicPropertyInfo.Recreation
          Identifies recreation facilities or amenities of interest.
static class BasicPropertyInfo.Service
          Identifies services of interest.
 
Constructor Summary
BasicPropertyInfo()
           
 
Method Summary
 void addAward(BasicPropertyInfo.Award item)
          Add a 'Award' element item.
 void addHotelAmenity(BasicPropertyInfo.HotelAmenity item)
          Add a 'HotelAmenity' element item.
 void addRecreation(BasicPropertyInfo.Recreation item)
          Add a 'Recreation' element item.
 void addService(BasicPropertyInfo.Service item)
          Add a 'Service' element item.
 void addVendorMessage(VendorMessages item)
          Add a 'VendorMessages' element item.
 void clearAwards()
          Remove all 'Award' element items.
 void clearHotelAmenities()
          Remove all 'HotelAmenity' element items.
 void clearRecreations()
          Remove all 'Recreation' element items.
 void clearServices()
          Remove all 'Service' element items.
 void clearVendorMessages()
          Remove all 'VendorMessages' element items.
 AddressInfo getAddress()
          Get the 'Address' element value.
 BasicPropertyInfo.Award getAward(int index)
          Get 'Award' element item by position.
 java.util.List<BasicPropertyInfo.Award> getAwards()
          Get the list of 'Award' element items.
 BasicPropertyInfo.ContactNumbers getContactNumbers()
          Get the 'ContactNumbers' element value.
 java.util.List<BasicPropertyInfo.HotelAmenity> getHotelAmenities()
          Get the list of 'HotelAmenity' element items.
 BasicPropertyInfo.HotelAmenity getHotelAmenity(int index)
          Get 'HotelAmenity' element item by position.
 HotelReferenceGroup getHotelReferenceGroup()
          Get the 'HotelReferenceGroup' attributeGroup value.
 java.lang.String getHotelSegmentCategoryCode()
          Get the 'HotelSegmentCategoryCode' attribute value.
 java.lang.Integer getMaxGroupRoomQuantity()
          Get the 'MaxGroupRoomQuantity' attribute value.
 BasicPropertyInfo.Policy getPolicy()
          Get the 'Policy' element value.
 PositionGroup getPosition()
          Get the 'PositionGroup' attributeGroup value.
 BasicPropertyInfo.Recreation getRecreation(int index)
          Get 'Recreation' element item by position.
 java.util.List<BasicPropertyInfo.Recreation> getRecreations()
          Get the list of 'Recreation' element items.
 RelativePosition getRelativePosition()
          Get the 'RelativePosition' element value.
 BasicPropertyInfo.Service getService(int index)
          Get 'Service' element item by position.
 java.util.List<BasicPropertyInfo.Service> getServices()
          Get the list of 'Service' element items.
 java.lang.Integer getSupplierIntegrationLevel()
          Get the 'SupplierIntegrationLevel' attribute value.
 VendorMessages getVendorMessage(int index)
          Get 'VendorMessages' element item by position.
 java.util.List<VendorMessages> getVendorMessages()
          Get the list of 'VendorMessages' element items.
 void setAddress(AddressInfo address)
          Set the 'Address' element value.
 void setAwards(java.util.List<BasicPropertyInfo.Award> list)
          Set the list of 'Award' element items.
 void setContactNumbers(BasicPropertyInfo.ContactNumbers contactNumbers)
          Set the 'ContactNumbers' element value.
 void setHotelAmenities(java.util.List<BasicPropertyInfo.HotelAmenity> list)
          Set the list of 'HotelAmenity' element items.
 void setHotelReferenceGroup(HotelReferenceGroup hotelReferenceGroup)
          Set the 'HotelReferenceGroup' attributeGroup value.
 void setHotelSegmentCategoryCode(java.lang.String hotelSegmentCategoryCode)
          Set the 'HotelSegmentCategoryCode' attribute value.
 void setMaxGroupRoomQuantity(java.lang.Integer maxGroupRoomQuantity)
          Set the 'MaxGroupRoomQuantity' attribute value.
 void setPolicy(BasicPropertyInfo.Policy policy)
          Set the 'Policy' element value.
 void setPosition(PositionGroup position)
          Set the 'PositionGroup' attributeGroup value.
 void setRecreations(java.util.List<BasicPropertyInfo.Recreation> list)
          Set the list of 'Recreation' element items.
 void setRelativePosition(RelativePosition relativePosition)
          Set the 'RelativePosition' element value.
 void setServices(java.util.List<BasicPropertyInfo.Service> list)
          Set the list of 'Service' element items.
 void setSupplierIntegrationLevel(java.lang.Integer supplierIntegrationLevel)
          Set the 'SupplierIntegrationLevel' attribute value.
 void setVendorMessages(java.util.List<VendorMessages> list)
          Set the list of 'VendorMessages' element items.
 int sizeAwards()
          Get the number of 'Award' element items.
 int sizeHotelAmenities()
          Get the number of 'HotelAmenity' element items.
 int sizeRecreations()
          Get the number of 'Recreation' element items.
 int sizeServices()
          Get the number of 'Service' element items.
 int sizeVendorMessages()
          Get the number of 'VendorMessages' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPropertyInfo

public BasicPropertyInfo()
Method Detail

getVendorMessages

public java.util.List<VendorMessages> getVendorMessages()
Get the list of 'VendorMessages' element items. A collection of VenderMessages

Returns:
list

setVendorMessages

public void setVendorMessages(java.util.List<VendorMessages> list)
Set the list of 'VendorMessages' element items. A collection of VenderMessages

Parameters:
list -

sizeVendorMessages

public int sizeVendorMessages()
Get the number of 'VendorMessages' element items.

Returns:
count

addVendorMessage

public void addVendorMessage(VendorMessages item)
Add a 'VendorMessages' element item.

Parameters:
item -

getVendorMessage

public VendorMessages getVendorMessage(int index)
Get 'VendorMessages' element item by position.

Parameters:
index -
Returns:
item

clearVendorMessages

public void clearVendorMessages()
Remove all 'VendorMessages' element items.


getPosition

public PositionGroup getPosition()
Get the 'PositionGroup' attributeGroup value. An element that identifies the geographic position of the hotel. The Position element uses the representation defined by ISO Standard 6709 to define a geographic point location.

Returns:
value

setPosition

public void setPosition(PositionGroup position)
Set the 'PositionGroup' attributeGroup value. An element that identifies the geographic position of the hotel. The Position element uses the representation defined by ISO Standard 6709 to define a geographic point location.

Parameters:
position -

getAddress

public AddressInfo getAddress()
Get the 'Address' element value. Public address of the hotel property.

Returns:
value

setAddress

public void setAddress(AddressInfo address)
Set the 'Address' element value. Public address of the hotel property.

Parameters:
address -

getContactNumbers

public BasicPropertyInfo.ContactNumbers getContactNumbers()
Get the 'ContactNumbers' element value.

Returns:
value

setContactNumbers

public void setContactNumbers(BasicPropertyInfo.ContactNumbers contactNumbers)
Set the 'ContactNumbers' element value.

Parameters:
contactNumbers -

getAwards

public java.util.List<BasicPropertyInfo.Award> getAwards()
Get the list of 'Award' element items.

Returns:
list

setAwards

public void setAwards(java.util.List<BasicPropertyInfo.Award> list)
Set the list of 'Award' element items.

Parameters:
list -

sizeAwards

public int sizeAwards()
Get the number of 'Award' element items.

Returns:
count

addAward

public void addAward(BasicPropertyInfo.Award item)
Add a 'Award' element item.

Parameters:
item -

getAward

public BasicPropertyInfo.Award getAward(int index)
Get 'Award' element item by position.

Parameters:
index -
Returns:
item

clearAwards

public void clearAwards()
Remove all 'Award' element items.


getRelativePosition

public RelativePosition getRelativePosition()
Get the 'RelativePosition' element value.

Returns:
value

setRelativePosition

public void setRelativePosition(RelativePosition relativePosition)
Set the 'RelativePosition' element value.

Parameters:
relativePosition -

getHotelAmenities

public java.util.List<BasicPropertyInfo.HotelAmenity> getHotelAmenities()
Get the list of 'HotelAmenity' element items.

Returns:
list

setHotelAmenities

public void setHotelAmenities(java.util.List<BasicPropertyInfo.HotelAmenity> list)
Set the list of 'HotelAmenity' element items.

Parameters:
list -

sizeHotelAmenities

public int sizeHotelAmenities()
Get the number of 'HotelAmenity' element items.

Returns:
count

addHotelAmenity

public void addHotelAmenity(BasicPropertyInfo.HotelAmenity item)
Add a 'HotelAmenity' element item.

Parameters:
item -

getHotelAmenity

public BasicPropertyInfo.HotelAmenity getHotelAmenity(int index)
Get 'HotelAmenity' element item by position.

Parameters:
index -
Returns:
item

clearHotelAmenities

public void clearHotelAmenities()
Remove all 'HotelAmenity' element items.


getRecreations

public java.util.List<BasicPropertyInfo.Recreation> getRecreations()
Get the list of 'Recreation' element items.

Returns:
list

setRecreations

public void setRecreations(java.util.List<BasicPropertyInfo.Recreation> list)
Set the list of 'Recreation' element items.

Parameters:
list -

sizeRecreations

public int sizeRecreations()
Get the number of 'Recreation' element items.

Returns:
count

addRecreation

public void addRecreation(BasicPropertyInfo.Recreation item)
Add a 'Recreation' element item.

Parameters:
item -

getRecreation

public BasicPropertyInfo.Recreation getRecreation(int index)
Get 'Recreation' element item by position.

Parameters:
index -
Returns:
item

clearRecreations

public void clearRecreations()
Remove all 'Recreation' element items.


getServices

public java.util.List<BasicPropertyInfo.Service> getServices()
Get the list of 'Service' element items.

Returns:
list

setServices

public void setServices(java.util.List<BasicPropertyInfo.Service> list)
Set the list of 'Service' element items.

Parameters:
list -

sizeServices

public int sizeServices()
Get the number of 'Service' element items.

Returns:
count

addService

public void addService(BasicPropertyInfo.Service item)
Add a 'Service' element item.

Parameters:
item -

getService

public BasicPropertyInfo.Service getService(int index)
Get 'Service' element item by position.

Parameters:
index -
Returns:
item

clearServices

public void clearServices()
Remove all 'Service' element items.


getPolicy

public BasicPropertyInfo.Policy getPolicy()
Get the 'Policy' element value.

Returns:
value

setPolicy

public void setPolicy(BasicPropertyInfo.Policy policy)
Set the 'Policy' element value.

Parameters:
policy -

getHotelReferenceGroup

public HotelReferenceGroup getHotelReferenceGroup()
Get the 'HotelReferenceGroup' attributeGroup value.

Returns:
value

setHotelReferenceGroup

public void setHotelReferenceGroup(HotelReferenceGroup hotelReferenceGroup)
Set the 'HotelReferenceGroup' attributeGroup value.

Parameters:
hotelReferenceGroup -

getHotelSegmentCategoryCode

public java.lang.String getHotelSegmentCategoryCode()
Get the 'HotelSegmentCategoryCode' attribute value. Identifies the segment (e.g., luxury, upscale, extended stay) of the hotel. Refer to OpenTravel Codelist Segment Category Code (SEG).

Returns:
value

setHotelSegmentCategoryCode

public void setHotelSegmentCategoryCode(java.lang.String hotelSegmentCategoryCode)
Set the 'HotelSegmentCategoryCode' attribute value. Identifies the segment (e.g., luxury, upscale, extended stay) of the hotel. Refer to OpenTravel Codelist Segment Category Code (SEG).

Parameters:
hotelSegmentCategoryCode -

getSupplierIntegrationLevel

public java.lang.Integer getSupplierIntegrationLevel()
Get the 'SupplierIntegrationLevel' attribute value. The level of integration of a property to provide automated transaction information. The lower the number, the higher the integration (e.g., a 1 means the supplier has the highest level of integration automation).

Returns:
value

setSupplierIntegrationLevel

public void setSupplierIntegrationLevel(java.lang.Integer supplierIntegrationLevel)
Set the 'SupplierIntegrationLevel' attribute value. The level of integration of a property to provide automated transaction information. The lower the number, the higher the integration (e.g., a 1 means the supplier has the highest level of integration automation).

Parameters:
supplierIntegrationLevel -

getMaxGroupRoomQuantity

public java.lang.Integer getMaxGroupRoomQuantity()
Get the 'MaxGroupRoomQuantity' attribute value. Provides the maximum number of rooms that can be booked in a property for a group.

Returns:
value

setMaxGroupRoomQuantity

public void setMaxGroupRoomQuantity(java.lang.Integer maxGroupRoomQuantity)
Set the 'MaxGroupRoomQuantity' attribute value. Provides the maximum number of rooms that can be booked in a property for a group.

Parameters:
maxGroupRoomQuantity -