org.ota.insurance
Class BookRS

java.lang.Object
  extended by org.ota.insurance.BookRS

public class BookRS
extends java.lang.Object

Container for insurance plan book responses. 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_InsuranceBookRS">
   <xs:complexType>
     <xs:choice>
       <xs:sequence>
         <xs:element type="ns:SuccessType" name="Success"/>
         <xs:element type="ns:WarningsType" name="Warnings" minOccurs="0"/>
         <xs:element name="PlanForBookRS" maxOccurs="unbounded">
           <!-- Reference to inner class PlanForBookRS -->
         </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 BookRS.PlanForBookRS
          Contains a booking response for a single insurance plan.
 
Constructor Summary
BookRS()
           
 
Method Summary
 void addPlanForBookRS(BookRS.PlanForBookRS item)
          Add a 'PlanForBookRS' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearPlanForBookRSs()
          Remove all 'PlanForBookRS' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 BookRS.PlanForBookRS getPlanForBookRS(int index)
          Get 'PlanForBookRS' element item by position.
 java.util.List<BookRS.PlanForBookRS> getPlanForBookRSs()
          Get the list of 'PlanForBookRS' element items.
 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 setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
          Set the 'OTA_PayloadStdAttributes' attributeGroup value.
 void setPlanForBookRSs(java.util.List<BookRS.PlanForBookRS> list)
          Set the list of 'PlanForBookRS' element items.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizePlanForBookRSs()
          Get the number of 'PlanForBookRS' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookRS

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

getPlanForBookRSs

public java.util.List<BookRS.PlanForBookRS> getPlanForBookRSs()
Get the list of 'PlanForBookRS' element items.

Returns:
list

setPlanForBookRSs

public void setPlanForBookRSs(java.util.List<BookRS.PlanForBookRS> list)
Set the list of 'PlanForBookRS' element items.

Parameters:
list -

sizePlanForBookRSs

public int sizePlanForBookRSs()
Get the number of 'PlanForBookRS' element items.

Returns:
count

addPlanForBookRS

public void addPlanForBookRS(BookRS.PlanForBookRS item)
Add a 'PlanForBookRS' element item.

Parameters:
item -

getPlanForBookRS

public BookRS.PlanForBookRS getPlanForBookRS(int index)
Get 'PlanForBookRS' element item by position.

Parameters:
index -
Returns:
item

clearPlanForBookRSs

public void clearPlanForBookRSs()
Remove all 'PlanForBookRS' 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. This element defines standard attributes that appear on the root element for all OpenTravel Messages.

Returns:
value

setOTAPayloadStdAttributes

public void setOTAPayloadStdAttributes(OTAPayloadStdAttributes OTAPayloadStdAttributes)
Set the 'OTA_PayloadStdAttributes' attributeGroup value. This element defines standard attributes that appear on the root element for all OpenTravel Messages.

Parameters:
OTAPayloadStdAttributes -