public class RecurringRateModel
extends com.highdeal.refilllogic.hci.RefillRecurringRateModel
Java class represents a recurring rate.The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="recurring">
<xs:complexType>
<xs:sequence>
<xs:element ref="component" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="calendarType" type="xs:string" default="gregorian"/>
<xs:attribute name="propagatedEvent" type="xs:boolean" default="false"/>
<xs:attribute name="frequency" type="xs:string"/>
<xs:attribute name="prepaid" type="xs:boolean" default="false"/>
<xs:attribute name="prepaidPeriods" type="xs:decimal"/>
<xs:attribute name="prorata" type="xs:boolean" default="false"/>
<xs:attribute name="timeUnit" type="xs:decimal"/>
<xs:attribute name="roundingMode" type="xs:decimal"/>
<xs:attribute name="roundingStep" type="xs:decimal"/>
<xs:attribute name="fraction" type="xs:decimal"/>
<xs:attribute name="splitRefund" type="xs:boolean" default="false"/>
<xs:attribute name="birthdayPropertyName" type="xs:string" default="default.agreement_creation_date"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this data model: recurring.
|
| Constructor and Description |
|---|
RecurringRateModel()
Creates a RecurringRateModel with Birthday Date set
to default property of agreement creation date.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkValidity()
Returns true if the recurring rate is valid.
|
RatingContextDescription |
getContext(ContextualNode child)
Gets the context for the specified child.
|
int |
getPrepaidPeriods()
Gets the prepaid periods count.
|
ProrataModel |
getProrata()
Gets the prorata model.
|
boolean |
isPrepaid()
Tests if the recurring rate is prepaid.
|
boolean |
isProratable()
Tests if the recurring rate is proratable.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setPrepaid(boolean prepaid)
Sets the prepaid flag.
|
void |
setPrepaidPeriods(int periods)
Sets the prepaid periods count.
|
void |
setProrata(ProrataModel p)
Sets the prorata model.
|
void |
setProratable(boolean proratable)
Sets the proratable flag.
|
getBirthdayPropertyName, getCalendarType, getFrequency, isPropagatedEvent, marshal, setBirthdayPropertyName, setCalendarType, setFrequency, setPropagatedEventaddCharacterData, addChild, getDescription, getName, getParent, getRateComponent, inheritedContext, marshalAttributes, marshalChildren, remove, setDescription, setName, setParent, setRateComponentpublic static final java.lang.String TAG_NAME
public RecurringRateModel()
public void setPrepaid(boolean prepaid)
prepaid - true if prepaid, false otherwisepublic boolean isPrepaid()
public int getPrepaidPeriods()
public void setPrepaidPeriods(int periods)
periods - The prepaid periods countpublic void setProratable(boolean proratable)
proratable - true if proratable, false otherwisepublic boolean isProratable()
public void setProrata(ProrataModel p)
p - The prorata modelpublic ProrataModel getProrata()
public boolean checkValidity()
checkValidity in class com.highdeal.refilllogic.hci.RefillRecurringRateModelpublic RatingContextDescription getContext(ContextualNode child)
getContext in interface ContextualNodegetContext in class com.highdeal.refilllogic.hci.RefillRecurringRateModelchild - The child nodepublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallablesetAttributes in class com.highdeal.refilllogic.hci.RefillRecurringRateModelatts - The XML attributes of the current element