public class AccountEventRefillModel extends RateModel
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>
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_ACCOUNT_EVENT_NAME
This constant contains the name of the XML attribute related to the account event name.
|
static String |
ATTRIBUTE_THRESHOLD
This constant contains the name of the XML attribute related to the amount threshold of the account event.
|
static String |
ATTRIBUTE_THRESHOLD_PROPERTY_NAME
This constant contains the name of the XML attribute related to the property which represents the amount threshold.
|
static String |
BALANCE_FALLS_UNDER_THRESHOLD_EVENT
Event name for the balance falling under threshold.
|
static String |
TAG_NAME
This constant contains the name of the XML attribute related to the account event refill.
|
| Constructor and Description |
|---|
AccountEventRefillModel() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
BigDecimal |
getThreshold()
Gets the threshold of the account event refill.
|
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(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(BigDecimal threshold)
Sets the threshold amount of the account event refill.
|
void |
setThresholdPropertyName(String thresholdPropertyName)
Sets the name of the numeric property which comes from the refill context and contains the threshold amount value.
|
addCharacterData, addChild, checkValidity, getDescription, getName, getParent, getRateComponent, inheritedContext, marshalAttributes, marshalChildren, remove, setDescription, setName, setParent, setRateComponentpublic static final String TAG_NAME
public static final String ATTRIBUTE_ACCOUNT_EVENT_NAME
public static final String ATTRIBUTE_THRESHOLD
public static final String ATTRIBUTE_THRESHOLD_PROPERTY_NAME
public static final String BALANCE_FALLS_UNDER_THRESHOLD_EVENT
public String getAccountEventName()
public BigDecimal getThreshold()
public String getThresholdPropertyName()
public void setAccountEventName(String name)
name - the name of the account event.
Allowed values are :
public void setThreshold(BigDecimal threshold)
threshold - the threshold of the account event to setpublic void setThresholdPropertyName(String thresholdPropertyName)
thresholdPropertyName - the name of the property which represents the amount thresholdpublic RatingContextDescription getContext(ContextualNode child)
ContextualNodechild - The child nodepublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallablesetAttributes in class RateModelatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface IXMLMarshallablemarshal in interface XMLMarshallablemarshal in class RateModeloutput - The XML output to marshal the object into