org.ota.shared
Class MonetaryRule

java.lang.Object
  extended by org.ota.shared.MonetaryRule

public class MonetaryRule
extends java.lang.Object

This defines the information pertaining to rules and amounts associated with these rules. 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="MonetaryRuleType">
   <xs:simpleContent>
     <xs:extension base="xs:string">
       <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
       <xs:attribute type="xs:string" use="required" name="RuleType"/>
       <xs:attribute type="xs:float" use="optional" name="Percent"/>
       <xs:attribute type="xs:dateTime" use="optional" name="DateTime"/>
       <xs:attribute type="xs:string" use="optional" name="PaymentType"/>
     </xs:extension>
   </xs:simpleContent>
 </xs:complexType>
 


Constructor Summary
MonetaryRule()
           
 
Method Summary
 CurrencyAmountGroup getCurrencyAmountGroup()
          Get the 'CurrencyAmountGroup' attributeGroup value.
 java.util.Date getDateTime()
          Get the 'DateTime' attribute value.
 java.lang.String getPayment()
          Get the 'PaymentType' attribute value.
 java.lang.Float getPercent()
          Get the 'Percent' attribute value.
 java.lang.String getRule()
          Get the 'RuleType' attribute value.
 java.lang.String getString()
          Get the extension value.
 void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
          Set the 'CurrencyAmountGroup' attributeGroup value.
 void setDateTime(java.util.Date dateTime)
          Set the 'DateTime' attribute value.
 void setPayment(java.lang.String payment)
          Set the 'PaymentType' attribute value.
 void setPercent(java.lang.Float percent)
          Set the 'Percent' attribute value.
 void setRule(java.lang.String rule)
          Set the 'RuleType' attribute value.
 void setString(java.lang.String string)
          Set the extension value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonetaryRule

public MonetaryRule()
Method Detail

getString

public java.lang.String getString()
Get the extension value.

Returns:
value

setString

public void setString(java.lang.String string)
Set the extension value.

Parameters:
string -

getCurrencyAmountGroup

public CurrencyAmountGroup getCurrencyAmountGroup()
Get the 'CurrencyAmountGroup' attributeGroup value. Provides the currency amount pertaining to the rule.

Returns:
value

setCurrencyAmountGroup

public void setCurrencyAmountGroup(CurrencyAmountGroup currencyAmountGroup)
Set the 'CurrencyAmountGroup' attributeGroup value. Provides the currency amount pertaining to the rule.

Parameters:
currencyAmountGroup -

getRule

public java.lang.String getRule()
Get the 'RuleType' attribute value. Refer to OpenTravel Code List Rule Type (RUL).

Returns:
value

setRule

public void setRule(java.lang.String rule)
Set the 'RuleType' attribute value. Refer to OpenTravel Code List Rule Type (RUL).

Parameters:
rule -

getPercent

public java.lang.Float getPercent()
Get the 'Percent' attribute value. The percent applicable to the monetary rule.

Returns:
value

setPercent

public void setPercent(java.lang.Float percent)
Set the 'Percent' attribute value. The percent applicable to the monetary rule.

Parameters:
percent -

getDateTime

public java.util.Date getDateTime()
Get the 'DateTime' attribute value. The date and time applicable to this monetary rule.

Returns:
value

setDateTime

public void setDateTime(java.util.Date dateTime)
Set the 'DateTime' attribute value. The date and time applicable to this monetary rule.

Parameters:
dateTime -

getPayment

public java.lang.String getPayment()
Get the 'PaymentType' attribute value. Refer to OpenTravel Code List Payment Type (PMT).

Returns:
value

setPayment

public void setPayment(java.lang.String payment)
Set the 'PaymentType' attribute value. Refer to OpenTravel Code List Payment Type (PMT).

Parameters:
payment -