org.ota.hotel
Class HotelAdditionalCharges

java.lang.Object
  extended by org.ota.hotel.HotelAdditionalCharges

public class HotelAdditionalCharges
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="HotelAdditionalChargesType">
   <xs:sequence>
     <xs:element name="AdditionalCharge" maxOccurs="99">
       <!-- Reference to inner class AdditionalCharge -->
     </xs:element>
   </xs:sequence>
   <xs:attribute type="xs:float" use="optional" name="AmountBeforeTax"/>
   <xs:attribute type="xs:float" use="optional" name="AmountAfterTax"/>
   <xs:attributeGroup ref="ns:CurrencyCodeGroup"/>
 </xs:complexType>
 


Nested Class Summary
static class HotelAdditionalCharges.AdditionalCharge
          Amenities or services to which a charge applies.
 
Constructor Summary
HotelAdditionalCharges()
           
 
Method Summary
 void addAdditionalCharge(HotelAdditionalCharges.AdditionalCharge item)
          Add a 'AdditionalCharge' element item.
 void clearAdditionalCharges()
          Remove all 'AdditionalCharge' element items.
 HotelAdditionalCharges.AdditionalCharge getAdditionalCharge(int index)
          Get 'AdditionalCharge' element item by position.
 java.util.List<HotelAdditionalCharges.AdditionalCharge> getAdditionalCharges()
          Get the list of 'AdditionalCharge' element items.
 java.lang.Float getAmountAfterTax()
          Get the 'AmountAfterTax' attribute value.
 java.lang.Float getAmountBeforeTax()
          Get the 'AmountBeforeTax' attribute value.
 CurrencyCodeGroup getCurrencyCodeGroup()
          Get the 'CurrencyCodeGroup' attributeGroup value.
 void setAdditionalCharges(java.util.List<HotelAdditionalCharges.AdditionalCharge> list)
          Set the list of 'AdditionalCharge' element items.
 void setAmountAfterTax(java.lang.Float amountAfterTax)
          Set the 'AmountAfterTax' attribute value.
 void setAmountBeforeTax(java.lang.Float amountBeforeTax)
          Set the 'AmountBeforeTax' attribute value.
 void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup)
          Set the 'CurrencyCodeGroup' attributeGroup value.
 int sizeAdditionalCharges()
          Get the number of 'AdditionalCharge' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HotelAdditionalCharges

public HotelAdditionalCharges()
Method Detail

getAdditionalCharges

public java.util.List<HotelAdditionalCharges.AdditionalCharge> getAdditionalCharges()
Get the list of 'AdditionalCharge' element items.

Returns:
list

setAdditionalCharges

public void setAdditionalCharges(java.util.List<HotelAdditionalCharges.AdditionalCharge> list)
Set the list of 'AdditionalCharge' element items.

Parameters:
list -

sizeAdditionalCharges

public int sizeAdditionalCharges()
Get the number of 'AdditionalCharge' element items.

Returns:
count

addAdditionalCharge

public void addAdditionalCharge(HotelAdditionalCharges.AdditionalCharge item)
Add a 'AdditionalCharge' element item.

Parameters:
item -

getAdditionalCharge

public HotelAdditionalCharges.AdditionalCharge getAdditionalCharge(int index)
Get 'AdditionalCharge' element item by position.

Parameters:
index -
Returns:
item

clearAdditionalCharges

public void clearAdditionalCharges()
Remove all 'AdditionalCharge' element items.


getAmountBeforeTax

public java.lang.Float getAmountBeforeTax()
Get the 'AmountBeforeTax' attribute value. Total additional charges before taxes.

Returns:
value

setAmountBeforeTax

public void setAmountBeforeTax(java.lang.Float amountBeforeTax)
Set the 'AmountBeforeTax' attribute value. Total additional charges before taxes.

Parameters:
amountBeforeTax -

getAmountAfterTax

public java.lang.Float getAmountAfterTax()
Get the 'AmountAfterTax' attribute value. Total additional charges after taxes.

Returns:
value

setAmountAfterTax

public void setAmountAfterTax(java.lang.Float amountAfterTax)
Set the 'AmountAfterTax' attribute value. Total additional charges after taxes.

Parameters:
amountAfterTax -

getCurrencyCodeGroup

public CurrencyCodeGroup getCurrencyCodeGroup()
Get the 'CurrencyCodeGroup' attributeGroup value. Currency code and number of decimal places used.

Returns:
value

setCurrencyCodeGroup

public void setCurrencyCodeGroup(CurrencyCodeGroup currencyCodeGroup)
Set the 'CurrencyCodeGroup' attributeGroup value. Currency code and number of decimal places used.

Parameters:
currencyCodeGroup -