org.ota.hotel
Class HotelDescriptiveContent.AreaInfo.Recreations.Recreation.RecreationDetails.RecreationDetail

java.lang.Object
  extended by org.ota.hotel.HotelDescriptiveContent.AreaInfo.Recreations.Recreation.RecreationDetails.RecreationDetail
Enclosing class:
HotelDescriptiveContent.AreaInfo.Recreations.Recreation.RecreationDetails

public static class HotelDescriptiveContent.AreaInfo.Recreations.Recreation.RecreationDetails.RecreationDetail
extends java.lang.Object

RecreationDetail is used to give furher desciption regarding the recreation. These codes are passed in the code attribute and include details such as if a golf course has a driving range and what the total yardage for the course is. 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="RecreationDetail" maxOccurs="unbounded">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:ParagraphType" name="Description" minOccurs="0" maxOccurs="5"/>
     </xs:sequence>
     <xs:attribute type="xs:string" use="optional" name="Code"/>
     <xs:attribute type="xs:string" use="optional" name="ExistsCode"/>
     <xs:attributeGroup ref="ns:CodeInfoGroup"/>
   </xs:complexType>
 </xs:element>
 


Constructor Summary
HotelDescriptiveContent.AreaInfo.Recreations.Recreation.RecreationDetails.RecreationDetail()
           
 
Method Summary
 void addDescription(Paragraph item)
          Add a 'Description' element item.
 void clearDescriptions()
          Remove all 'Description' element items.
 java.lang.String getCode()
          Get the 'Code' attribute value.
 CodeInfoGroup getCodeInfoGroup()
          Get the 'CodeInfoGroup' attributeGroup value.
 Paragraph getDescription(int index)
          Get 'Description' element item by position.
 java.util.List<Paragraph> getDescriptions()
          Get the list of 'Description' element items.
 java.lang.String getExistsCode()
          Get the 'ExistsCode' attribute value.
 void setCode(java.lang.String code)
          Set the 'Code' attribute value.
 void setCodeInfoGroup(CodeInfoGroup codeInfoGroup)
          Set the 'CodeInfoGroup' attributeGroup value.
 void setDescriptions(java.util.List<Paragraph> list)
          Set the list of 'Description' element items.
 void setExistsCode(java.lang.String existsCode)
          Set the 'ExistsCode' attribute value.
 int sizeDescriptions()
          Get the number of 'Description' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelDescriptiveContent.AreaInfo.Recreations.Recreation.RecreationDetails.RecreationDetail

public HotelDescriptiveContent.AreaInfo.Recreations.Recreation.RecreationDetails.RecreationDetail()
Method Detail

getDescriptions

public java.util.List<Paragraph> getDescriptions()
Get the list of 'Description' element items. Used to pass further description regarding the info code.

Returns:
list

setDescriptions

public void setDescriptions(java.util.List<Paragraph> list)
Set the list of 'Description' element items. Used to pass further description regarding the info code.

Parameters:
list -

sizeDescriptions

public int sizeDescriptions()
Get the number of 'Description' element items.

Returns:
count

addDescription

public void addDescription(Paragraph item)
Add a 'Description' element item.

Parameters:
item -

getDescription

public Paragraph getDescription(int index)
Get 'Description' element item by position.

Parameters:
index -
Returns:
item

clearDescriptions

public void clearDescriptions()
Remove all 'Description' element items.


getCode

public java.lang.String getCode()
Get the 'Code' attribute value. Refer to OpenTravel Code List Recreation Srvc Detail Code (REC).

Returns:
value

setCode

public void setCode(java.lang.String code)
Set the 'Code' attribute value. Refer to OpenTravel Code List Recreation Srvc Detail Code (REC).

Parameters:
code -

getExistsCode

public java.lang.String getExistsCode()
Get the 'ExistsCode' attribute value. This attribute is used to explicitly define whether an amenity or service is offered. Refer to OpenTravel Code list Option Type Code (OTC). This is used in conjunction with Code.

Returns:
value

setExistsCode

public void setExistsCode(java.lang.String existsCode)
Set the 'ExistsCode' attribute value. This attribute is used to explicitly define whether an amenity or service is offered. Refer to OpenTravel Code list Option Type Code (OTC). This is used in conjunction with Code.

Parameters:
existsCode -

getCodeInfoGroup

public CodeInfoGroup getCodeInfoGroup()
Get the 'CodeInfoGroup' attributeGroup value. May be used to give further detail on the code or to remove an obsolete item. If the code being passed is for golf couse total yardage, code detail may be used to pass the actual yardage.

Returns:
value

setCodeInfoGroup

public void setCodeInfoGroup(CodeInfoGroup codeInfoGroup)
Set the 'CodeInfoGroup' attributeGroup value. May be used to give further detail on the code or to remove an obsolete item. If the code being passed is for golf couse total yardage, code detail may be used to pass the actual yardage.

Parameters:
codeInfoGroup -