org.ota.itin
Class TravelCost

java.lang.Object
  extended by org.ota.itin.TravelCost

public class TravelCost
extends java.lang.Object

Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TravelCostType">
   <xs:sequence>
     <xs:element type="ns:PaymentFormType" name="FormOfPayment" maxOccurs="unbounded"/>
     <xs:element name="CostTotals" minOccurs="0">
       <!-- Reference to inner class CostTotals -->
     </xs:element>
     <xs:element ref="ns:TPA_Extensions" minOccurs="0"/>
   </xs:sequence>
 </xs:complexType>
 
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" type="ns:TPA_ExtensionsType" name="TPA_Extensions"/>
 


Nested Class Summary
static class TravelCost.CostTotals
          Total cost associated with the ENTIRE itinerary.
 
Constructor Summary
TravelCost()
           
 
Method Summary
 void addFormOfPayment(PaymentForm item)
          Add a 'FormOfPayment' element item.
 void clearFormOfPayments()
          Remove all 'FormOfPayment' element items.
 TravelCost.CostTotals getCostTotals()
          Get the 'CostTotals' element value.
 PaymentForm getFormOfPayment(int index)
          Get 'FormOfPayment' element item by position.
 java.util.List<PaymentForm> getFormOfPayments()
          Get the list of 'FormOfPayment' element items.
 TPAExtensions getTPAExtensions()
          Get the 'TPA_Extensions' element value.
 void setCostTotals(TravelCost.CostTotals costTotals)
          Set the 'CostTotals' element value.
 void setFormOfPayments(java.util.List<PaymentForm> list)
          Set the list of 'FormOfPayment' element items.
 void setTPAExtensions(TPAExtensions TPAExtensions)
          Set the 'TPA_Extensions' element value.
 int sizeFormOfPayments()
          Get the number of 'FormOfPayment' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TravelCost

public TravelCost()
Method Detail

getFormOfPayments

public java.util.List<PaymentForm> getFormOfPayments()
Get the list of 'FormOfPayment' element items. Form of payment information (e.g. VISA, Debit Card, Check).

Returns:
list

setFormOfPayments

public void setFormOfPayments(java.util.List<PaymentForm> list)
Set the list of 'FormOfPayment' element items. Form of payment information (e.g. VISA, Debit Card, Check).

Parameters:
list -

sizeFormOfPayments

public int sizeFormOfPayments()
Get the number of 'FormOfPayment' element items.

Returns:
count

addFormOfPayment

public void addFormOfPayment(PaymentForm item)
Add a 'FormOfPayment' element item.

Parameters:
item -

getFormOfPayment

public PaymentForm getFormOfPayment(int index)
Get 'FormOfPayment' element item by position.

Parameters:
index -
Returns:
item

clearFormOfPayments

public void clearFormOfPayments()
Remove all 'FormOfPayment' element items.


getCostTotals

public TravelCost.CostTotals getCostTotals()
Get the 'CostTotals' element value.

Returns:
value

setCostTotals

public void setCostTotals(TravelCost.CostTotals costTotals)
Set the 'CostTotals' element value.

Parameters:
costTotals -

getTPAExtensions

public TPAExtensions getTPAExtensions()
Get the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Returns:
value

setTPAExtensions

public void setTPAExtensions(TPAExtensions TPAExtensions)
Set the 'TPA_Extensions' element value. A placeholder in the schema to allow for additional elements and attributes to be included if required, per Trading Partner Agreement (TPA).

Parameters:
TPAExtensions -