org.ota.insurance
Class QuoteRS

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

public class QuoteRS
extends java.lang.Object

Container for insurance plan quote results 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_InsuranceQuoteRS">
   <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="PlanForQuoteRS" maxOccurs="unbounded">
           <!-- Reference to inner class PlanForQuoteRS -->
         </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 QuoteRS.PlanForQuoteRS
          Contains a quote response for a single insurance plan.
 
Constructor Summary
QuoteRS()
           
 
Method Summary
 void addPlanForQuoteRS(QuoteRS.PlanForQuoteRS item)
          Add a 'PlanForQuoteRS' element item.
 void clearChoiceSelect()
          Clear the choice selection.
 void clearPlanForQuoteRSs()
          Remove all 'PlanForQuoteRS' element items.
 Errors getErrors()
          Get the 'Errors' element value.
 OTAPayloadStdAttributes getOTAPayloadStdAttributes()
          Get the 'OTA_PayloadStdAttributes' attributeGroup value.
 QuoteRS.PlanForQuoteRS getPlanForQuoteRS(int index)
          Get 'PlanForQuoteRS' element item by position.
 java.util.List<QuoteRS.PlanForQuoteRS> getPlanForQuoteRSs()
          Get the list of 'PlanForQuoteRS' 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 setPlanForQuoteRSs(java.util.List<QuoteRS.PlanForQuoteRS> list)
          Set the list of 'PlanForQuoteRS' element items.
 void setWarnings(Warnings warnings)
          Set the 'Warnings' element value.
 int sizePlanForQuoteRSs()
          Get the number of 'PlanForQuoteRS' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuoteRS

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

getPlanForQuoteRSs

public java.util.List<QuoteRS.PlanForQuoteRS> getPlanForQuoteRSs()
Get the list of 'PlanForQuoteRS' element items.

Returns:
list

setPlanForQuoteRSs

public void setPlanForQuoteRSs(java.util.List<QuoteRS.PlanForQuoteRS> list)
Set the list of 'PlanForQuoteRS' element items.

Parameters:
list -

sizePlanForQuoteRSs

public int sizePlanForQuoteRSs()
Get the number of 'PlanForQuoteRS' element items.

Returns:
count

addPlanForQuoteRS

public void addPlanForQuoteRS(QuoteRS.PlanForQuoteRS item)
Add a 'PlanForQuoteRS' element item.

Parameters:
item -

getPlanForQuoteRS

public QuoteRS.PlanForQuoteRS getPlanForQuoteRS(int index)
Get 'PlanForQuoteRS' element item by position.

Parameters:
index -
Returns:
item

clearPlanForQuoteRSs

public void clearPlanForQuoteRSs()
Remove all 'PlanForQuoteRS' 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 -