org.ota.shared
Class Tax

java.lang.Object
  extended by org.ota.shared.Tax
Direct Known Subclasses:
HotelDescriptiveContent.Policies.Policy.TaxPolicies.TaxPolicy

public class Tax
extends java.lang.Object

Applicable tax element. This element allows for both percentages and flat amounts. If one field is used, the other should be zero since logically, taxes should be calculated in only one of the two ways. 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="TaxType">
   <xs:sequence>
     <xs:element type="ns:ParagraphType" name="TaxDescription" minOccurs="0" maxOccurs="5"/>
   </xs:sequence>
   <xs:attributeGroup ref="ns:FeeTaxGroup"/>
   <xs:attributeGroup ref="ns:EffectiveExpireOptionalDateGroup"/>
   <xs:attributeGroup ref="ns:ChargeUnitGroup"/>
 </xs:complexType>
 


Constructor Summary
Tax()
           
 
Method Summary
 void addTaxDescription(Paragraph item)
          Add a 'TaxDescription' element item.
 void clearTaxDescriptions()
          Remove all 'TaxDescription' element items.
 ChargeUnitGroup getChargeUnitGroup()
          Get the 'ChargeUnitGroup' attributeGroup value.
 EffectiveExpireOptionalDateGroup getEffectiveExpireOptionalDateGroup()
          Get the 'EffectiveExpireOptionalDateGroup' attributeGroup value.
 FeeTaxGroup getFeeTaxGroup()
          Get the 'FeeTaxGroup' attributeGroup value.
 Paragraph getTaxDescription(int index)
          Get 'TaxDescription' element item by position.
 java.util.List<Paragraph> getTaxDescriptions()
          Get the list of 'TaxDescription' element items.
 void setChargeUnitGroup(ChargeUnitGroup chargeUnitGroup)
          Set the 'ChargeUnitGroup' attributeGroup value.
 void setEffectiveExpireOptionalDateGroup(EffectiveExpireOptionalDateGroup effectiveExpireOptionalDateGroup)
          Set the 'EffectiveExpireOptionalDateGroup' attributeGroup value.
 void setFeeTaxGroup(FeeTaxGroup feeTaxGroup)
          Set the 'FeeTaxGroup' attributeGroup value.
 void setTaxDescriptions(java.util.List<Paragraph> list)
          Set the list of 'TaxDescription' element items.
 int sizeTaxDescriptions()
          Get the number of 'TaxDescription' element items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tax

public Tax()
Method Detail

getTaxDescriptions

public java.util.List<Paragraph> getTaxDescriptions()
Get the list of 'TaxDescription' element items. Text description of the taxes in a given language.

Returns:
list

setTaxDescriptions

public void setTaxDescriptions(java.util.List<Paragraph> list)
Set the list of 'TaxDescription' element items. Text description of the taxes in a given language.

Parameters:
list -

sizeTaxDescriptions

public int sizeTaxDescriptions()
Get the number of 'TaxDescription' element items.

Returns:
count

addTaxDescription

public void addTaxDescription(Paragraph item)
Add a 'TaxDescription' element item.

Parameters:
item -

getTaxDescription

public Paragraph getTaxDescription(int index)
Get 'TaxDescription' element item by position.

Parameters:
index -
Returns:
item

clearTaxDescriptions

public void clearTaxDescriptions()
Remove all 'TaxDescription' element items.


getFeeTaxGroup

public FeeTaxGroup getFeeTaxGroup()
Get the 'FeeTaxGroup' attributeGroup value. Provides details of the tax.

Returns:
value

setFeeTaxGroup

public void setFeeTaxGroup(FeeTaxGroup feeTaxGroup)
Set the 'FeeTaxGroup' attributeGroup value. Provides details of the tax.

Parameters:
feeTaxGroup -

getEffectiveExpireOptionalDateGroup

public EffectiveExpireOptionalDateGroup getEffectiveExpireOptionalDateGroup()
Get the 'EffectiveExpireOptionalDateGroup' attributeGroup value. Provides the effective and expiry dates for the tax.

Returns:
value

setEffectiveExpireOptionalDateGroup

public void setEffectiveExpireOptionalDateGroup(EffectiveExpireOptionalDateGroup effectiveExpireOptionalDateGroup)
Set the 'EffectiveExpireOptionalDateGroup' attributeGroup value. Provides the effective and expiry dates for the tax.

Parameters:
effectiveExpireOptionalDateGroup -

getChargeUnitGroup

public ChargeUnitGroup getChargeUnitGroup()
Get the 'ChargeUnitGroup' attributeGroup value. Specifies charge information by unit (e.g., room, person, item) and frequency (e.g., daily, weekly, stay).

Returns:
value

setChargeUnitGroup

public void setChargeUnitGroup(ChargeUnitGroup chargeUnitGroup)
Set the 'ChargeUnitGroup' attributeGroup value. Specifies charge information by unit (e.g., room, person, item) and frequency (e.g., daily, weekly, stay).

Parameters:
chargeUnitGroup -