Package com.highdeal.pnr.hci
Class AmountAlertModel
java.lang.Object
com.highdeal.pnr.hci.AmountAlertModel
- All Implemented Interfaces:
XMLMarshallable
This class represents an alert which must be
notified by the SAP CC system when the balance reaches a certain amount.- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="amountAlert">
<xs:complexType>
<xs:attribute name="amount" type="xs:string" use="required"/>
<xs:attribute name="code" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty amount alert.AmountAlertModel(String code, BigDecimal amount) Builds an amount alert. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the amount of the amount alert.getCode()Gets the code of the amount alert.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAmount(BigDecimal amount) Sets the amount of the amount alert.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets the code of the amount alert.
-
Constructor Details
-
AmountAlertModel
public AmountAlertModel()Builds an empty amount alert. -
AmountAlertModel
Builds an amount alert.- Parameters:
code- the code of the amount alert.amount- the amount of amount alert.
-
-
Method Details
-
getAmount
Gets the amount of the amount alert.- Returns:
- the amount of the amount alert.
-
setAmount
Sets the amount of the amount alert.- Parameters:
amount- the amount of the amount alert.
-
getCode
Gets the code of the amount alert.- Returns:
- the code of the amount alert.
-
setCode
Sets the code of the amount alert.- Parameters:
code- the code of the amount alert.
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-