org.ota.golf
Class CourseResRS

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

public class CourseResRS
extends java.lang.Object

The OTA_CourseResRS message is used as a response to the OTA_CourseResRQ. The specific information about the golfer or golfers is necessary in order to validate booking rules and set rates. The response includes all rate and confirmation information. Where the booking entity has the authority to make the booking and uses the Request message as a notification, the Response message is merely an acknowledgment of receipt of that booking. 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_GolfCourseResRS">
   <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="GolfCoursesRes">
           <xs:complexType>
             <xs:sequence>
               <xs:element type="ns:GolfCourseResType" name="GolfCourseRes" 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:attributeGroup ref="ns:ID_Group"/>
   </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"/>
 
 <xs:attributeGroup xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ID_Group">
   <xs:attribute type="xs:string" use="required" name="ID"/>
 </xs:attributeGroup>
 


Constructor Summary
CourseResRS()
           
 
Method Summary
 void addGolfCourseRe(GolfCourseRes item)
          Add a 'GolfCourseRes' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearGolfCourseRes()
          Remove all 'GolfCourseRes' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 GolfCourseRes getGolfCourseRe(int index)
          Get 'GolfCourseRes' element item by position.
 java.util.List<GolfCourseRes> getGolfCourseRes()
          Get the list of 'GolfCourseRes' element items.
 java.lang.String getID()
          Get the 'ID' attribute value.
 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 setGolfCourseRes(java.util.List<GolfCourseRes> list)
          Set the list of 'GolfCourseRes' element items.
 void setID(java.lang.String ID)
          Set the 'ID' attribute value.
 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 sizeGolfCourseRes()
          Get the number of 'GolfCourseRes' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseResRS

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

getGolfCourseRes

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

Returns:
list

setGolfCourseRes

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

Parameters:
list -

sizeGolfCourseRes

public int sizeGolfCourseRes()
Get the number of 'GolfCourseRes' element items.

Returns:
count

addGolfCourseRe

public void addGolfCourseRe(GolfCourseRes item)
Add a 'GolfCourseRes' element item.

Parameters:
item -

getGolfCourseRe

public GolfCourseRes getGolfCourseRe(int index)
Get 'GolfCourseRes' element item by position.

Parameters:
index -
Returns:
item

clearGolfCourseRes

public void clearGolfCourseRes()
Remove all 'GolfCourseRes' 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 -

getID

public java.lang.String getID()
Get the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

Returns:
value

setID

public void setID(java.lang.String ID)
Set the 'ID' attribute value. A unique identifying value assigned by the creating system. The ID attribute may be used to reference a primary-key value within a database or in a particular implementation.

Parameters:
ID -