|
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.pnr.hci.AccountEventRefillModel
public class AccountEventRefillModel
This class represents a refill which is triggered by an event associated to an account.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:simpleType name="accountEventNameType">
<xs:restriction base="xs:string">
<xs:enumeration value="_balance_falls_under_threshold_event_"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="accountEventRefill">
<xs:complexType>
<xs:sequence>
<xs:element ref="component" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="accountEventName" type="accountEventNameType" use="required"/>
<xs:attribute name="threshold" type="xs:decimal" use="optional"/>
<xs:attribute name="thresholdPropertyName" type="xs:string" use="optional"/>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="description" type="xs:string"/>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_ACCOUNT_EVENT_NAME
This constant contains the name of the XML attribute related to the account event name. |
static java.lang.String |
ATTRIBUTE_THRESHOLD
This constant contains the name of the XML attribute related to the amount threshold of the account event. |
static java.lang.String |
ATTRIBUTE_THRESHOLD_PROPERTY_NAME
This constant contains the name of the XML attribute related to the property which represents the amount threshold. |
static java.lang.String |
BALANCE_FALLS_UNDER_THRESHOLD_EVENT
Event name for the balance falling under threshold. |
static java.lang.String |
TAG_NAME
This constant contains the name of the XML attribute related to the account event refill. |
| Constructor Summary | |
|---|---|
AccountEventRefillModel()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAccountEventName()
Gets the name of the account event which triggered this refill. |
RatingContextDescription |
getContext(ContextualNode child)
Gets the context description for the specified child; The context description contains all the context properties. |
java.math.BigDecimal |
getThreshold()
Gets the threshold of the account event refill. |
java.lang.String |
getThresholdPropertyName()
Gets the name of the property which represents the amount threshold. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAccountEventName(java.lang.String name)
Sets the name of the account event which triggered this refill. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setThreshold(java.math.BigDecimal threshold)
Sets the threshold amount of the account event refill. |
void |
setThresholdPropertyName(java.lang.String thresholdPropertyName)
Sets the name of the numeric property which comes from the refill context and contains the threshold amount value. |
| Methods inherited from class com.highdeal.pnr.hci.RateModel |
|---|
addCharacterData, addChild, checkValidity, 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
public static final java.lang.String ATTRIBUTE_ACCOUNT_EVENT_NAME
public static final java.lang.String ATTRIBUTE_THRESHOLD
public static final java.lang.String ATTRIBUTE_THRESHOLD_PROPERTY_NAME
public static final java.lang.String BALANCE_FALLS_UNDER_THRESHOLD_EVENT
| Constructor Detail |
|---|
public AccountEventRefillModel()
| Method Detail |
|---|
public java.lang.String getAccountEventName()
public java.math.BigDecimal getThreshold()
public java.lang.String getThresholdPropertyName()
public void setAccountEventName(java.lang.String name)
name - the name of the account event.
Allowed values are :
public void setThreshold(java.math.BigDecimal threshold)
threshold - the threshold of the account event to setpublic void setThresholdPropertyName(java.lang.String thresholdPropertyName)
thresholdPropertyName - the name of the property which represents the amount thresholdpublic RatingContextDescription getContext(ContextualNode child)
ContextualNode
child - The child node
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallablesetAttributes in class RateModelatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface IXMLMarshallablemarshal in interface XMLMarshallablemarshal in class RateModeloutput - The XML output to marshal the object into
|
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 | ||||||||