org.ota.golf
Class CourseAvailRS

java.lang.Object
  extended by org.ota.golf.CourseAvailRS

public class CourseAvailRS
extends java.lang.Object

The OTA_CourseAvailRS is the response message associated with the OTA_CourseAvailRQ message. It includes any errors and warnings, or an element indicating success. Where the response is successful, the tee times and fees will be included. 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="OTA_GolfCourseAvailRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element type="ns:UniqueID_Type" name="UniqueID" minOccurs="0"/>
         <xs:element name="GolfCourseTeeTimes">
           <xs:complexType>
             <xs:sequence>
               <xs:element type="ns:GolfCourseTeeTimeType" name="GolfCourseTeeTime" maxOccurs="99"/>
             </xs:sequence>
           </xs:complexType>
         </xs:element>
       </xs:sequence>
       <xs:element type="ns:ErrorsType" name="Errors"/>
     </xs:choice>
     <xs:attributeGroup ref="ns:OTA_PayloadStdAttributes"/>
   </xs:complexType>
 </xs:element>
 
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SuccessType"/>
 


Constructor Summary
CourseAvailRS()
           
 
Method Summary
 void addGolfCourseTeeTime(GolfCourseTeeTime item)
          Add a 'GolfCourseTeeTime' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearGolfCourseTeeTimes()
          Remove all 'GolfCourseTeeTime' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 GolfCourseTeeTime getGolfCourseTeeTime(int index)
          Get 'GolfCourseTeeTime' element item by position.
 java.util.List<GolfCourseTeeTime> getGolfCourseTeeTimes()
          Get the list of 'GolfCourseTeeTime' element items.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 UniqueID getUniqueID()
          Get the 'UniqueID' element value.
 Warnings getWarnings()
          Get the 'Warnings' element value.
 boolean ifErrors()
          Check if Errors is current selection for choice.
 boolean ifSuccess()
          Check if Success is current selection for choice.
 void setErrors(Errors errors)
          Set the 'Errors' element value.
 void setGolfCourseTeeTimes(java.util.List<GolfCourseTeeTime> list)
          Set the list of 'GolfCourseTeeTime' element items.
 void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setUniqueID(UniqueID uniqueID)
          Set the 'UniqueID' element value.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizeGolfCourseTeeTimes()
          Get the number of 'GolfCourseTeeTime' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseAvailRS

public CourseAvailRS()
Method Detail

clearChoiceSelect

public void clearChoiceSelect()
Clear the choice selection.


ifSuccess

public boolean ifSuccess()
Check if Success is current selection for choice.

Returns:
true if selection, false if not

getWarnings

public Warnings getWarnings()
Get the 'Warnings' element value.

Returns:
value

setWarnings

public void setWarnings(Warnings warnings)
Set the 'Warnings' element value.

Parameters:
warnings -

getUniqueID

public UniqueID getUniqueID()
Get the 'UniqueID' element value.

Returns:
value

setUniqueID

public void setUniqueID(UniqueID uniqueID)
Set the 'UniqueID' element value.

Parameters:
uniqueID -

getGolfCourseTeeTimes

public java.util.List<GolfCourseTeeTime> getGolfCourseTeeTimes()
Get the list of 'GolfCourseTeeTime' element items.

Returns:
list

setGolfCourseTeeTimes

public void setGolfCourseTeeTimes(java.util.List<GolfCourseTeeTime> list)
Set the list of 'GolfCourseTeeTime' element items.

Parameters:
list -

sizeGolfCourseTeeTimes

public int sizeGolfCourseTeeTimes()
Get the number of 'GolfCourseTeeTime' element items.

Returns:
count

addGolfCourseTeeTime

public void addGolfCourseTeeTime(GolfCourseTeeTime item)
Add a 'GolfCourseTeeTime' element item.

Parameters:
item -

getGolfCourseTeeTime

public GolfCourseTeeTime getGolfCourseTeeTime(int index)
Get 'GolfCourseTeeTime' element item by position.

Parameters:
index -
Returns:
item

clearGolfCourseTeeTimes

public void clearGolfCourseTeeTimes()
Remove all 'GolfCourseTeeTime' element items.


ifErrors

public boolean ifErrors()
Check if Errors is current selection for choice.

Returns:
true if selection, false if not

getErrors

public Errors getErrors()
Get the 'Errors' element value.

Returns:
value

setErrors

public void setErrors(Errors errors)
Set the 'Errors' element value.

Parameters:
errors -

getOTAPayloadStdAttributes

public OTAPayloadStdAttributes getOTAPayloadStdAttributes()
Get the 'OTA_PayloadStdAttributes' attributeGroup value.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value.

Parameters:
OTAPayloadStdAttributes -