org.ota.golf
Class CourseSearchRS

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

public class CourseSearchRS
extends java.lang.Object

Returns a set of data representing the course(s) that meet the requested criteria. Where the criteria attribute of Required is 'Yes' then only those courses that meet those criteria will be returned. Where the Required attribute is 'No' then a course that does not meet that criteria may be included in the set. In all cases, where the criteria has been included in the request, the comparable trait and its value will be returned, along with the basic course information and identification. The message may also include Warnings from business processing rules or Errors if the request did not succeed. 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_GolfCourseSearchRS">
   <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="GolfCourses">
           <xs:complexType>
             <xs:sequence>
               <xs:element type="ns:GolfCourseType" name="GolfCourse" maxOccurs="99">
                 <!-- Reference to inner class GolfCourse -->
               </xs:element>
             </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"/>
 


Nested Class Summary
static class CourseSearchRS.GolfCourse
          Schema fragment(s) for this class:
 
Constructor Summary
CourseSearchRS()
           
 
Method Summary
 void addGolfCourse(CourseSearchRS.GolfCourse item)
          Add a 'GolfCourse' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearGolfCourses()
          Remove all 'GolfCourse' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 CourseSearchRS.GolfCourse getGolfCourse(int index)
          Get 'GolfCourse' element item by position.
 java.util.List<CourseSearchRS.GolfCourse> getGolfCourses()
          Get the list of 'GolfCourse' 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 setGolfCourses(java.util.List<CourseSearchRS.GolfCourse> list)
          Set the list of 'GolfCourse' 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 sizeGolfCourses()
          Get the number of 'GolfCourse' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseSearchRS

public CourseSearchRS()
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 -

getGolfCourses

public java.util.List<CourseSearchRS.GolfCourse> getGolfCourses()
Get the list of 'GolfCourse' element items.

Returns:
list

setGolfCourses

public void setGolfCourses(java.util.List<CourseSearchRS.GolfCourse> list)
Set the list of 'GolfCourse' element items.

Parameters:
list -

sizeGolfCourses

public int sizeGolfCourses()
Get the number of 'GolfCourse' element items.

Returns:
count

addGolfCourse

public void addGolfCourse(CourseSearchRS.GolfCourse item)
Add a 'GolfCourse' element item.

Parameters:
item -

getGolfCourse

public CourseSearchRS.GolfCourse getGolfCourse(int index)
Get 'GolfCourse' element item by position.

Parameters:
index -
Returns:
item

clearGolfCourses

public void clearGolfCourses()
Remove all 'GolfCourse' 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 -