|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.RateModel
com.highdeal.refilllogic.hci.RefillRecurringRateModel
com.highdeal.pnr.hci.RecurringRateModel
public class RecurringRateModel
This 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="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>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this data model: recurring. |
| Constructor Summary | |
|---|---|
RecurringRateModel()
Creates a RecurringRateModel with Birthday Date set to default property of agreement creation date. |
|
| Method Summary | |
|---|---|
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. |
protected java.lang.String |
getTagName()
|
boolean |
isPrepaid()
Tests if the recurring rate is prepaid. |
boolean |
isProratable()
Tests if the recurring rate is proratable. |
protected void |
marshallAttributes(XMLOutputter output)
|
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. |
| Methods inherited from class com.highdeal.refilllogic.hci.RefillRecurringRateModel |
|---|
getBirthdayPropertyName, getFrequency, isPropagatedEvent, marshal, setBirthdayPropertyName, setFrequency, setPropagatedEvent |
| Methods inherited from class com.highdeal.pnr.hci.RateModel |
|---|
addCharacterData, addChild, getDescription, getName, getParent, getRateComponent, inheritedContext, marshalAttributes, marshalChildren, remove, setDescription, setName, setParent, setRateComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public RecurringRateModel()
| Method Detail |
|---|
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 node
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallablesetAttributes in class com.highdeal.refilllogic.hci.RefillRecurringRateModelatts - The XML attributes of the current elementprotected void marshallAttributes(XMLOutputter output)
marshallAttributes in class com.highdeal.refilllogic.hci.RefillRecurringRateModelprotected java.lang.String getTagName()
getTagName in class com.highdeal.refilllogic.hci.RefillRecurringRateModel
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||