Package com.highdeal.pnr.hci
Class AccountOperation.AmountAssignment
java.lang.Object
com.highdeal.hci.HCIModelAdapter
com.highdeal.pnr.hci.AccountOperation.AmountAssignment
- All Implemented Interfaces:
ITagNameProvider,IXMLMarshallable,XMLMarshallable
- Enclosing class:
- AccountOperation
This class represents the assignment of part of the amount of an
account operation to an account.
An amount assignment contains:
- An amount
- An
account reference - A
charged itemkey
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="amountAssignment">
<xs:complexType>
<xs:attribute name="amount" type="xs:string" use="required" />
<xs:attribute name="referenceType" type="xs:string" use="required" />
<xs:attribute name="referenceId" type="xs:string" use="required" />
<xs:attribute name="chargedItemKey" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an uninitialized amount assignment.AmountAssignment(Money amount, AccountOperation.AccountReference reference, int chargedItemKey) Builds an amount assignment with an amount, anaccount referenceand acharged itemkey. -
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 theaccount referencerelated to the assignment.Gets the amount of the assignment.intGets the key of thecharged itemrelated to the assignment.Gets the XML tag name of the HCI model.voidmarshalAttributes(XMLOutputter output) Gives an XML representation of the attributes of an object.voidmarshalChildren(XMLOutputter output) Gives an XML representation of the child objects of an object.voidSets theaccount referencerelated to the assignment.voidSets the amount of the assignment.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetChargedItemKey(int chargedItemKey) Sets the key of thecharged itemrelated to the assignment.Methods inherited from class com.highdeal.hci.HCIModelAdapter
marshal
-
Field Details
-
TAG_NAME
The XML tag name of this object: "amountAssignment"- See Also:
-
-
Constructor Details
-
AmountAssignment
public AmountAssignment()Builds an uninitialized amount assignment. -
AmountAssignment
public AmountAssignment(Money amount, AccountOperation.AccountReference reference, int chargedItemKey) Builds an amount assignment with an amount, anaccount referenceand acharged itemkey.- Parameters:
amount- The amount of the assignmentreference- Theaccount referencerelated to the assignmentchargedItemKey- The key of thecharged itemrelated to the assignment
-
-
Method Details
-
getAmount
Gets the amount of the assignment.- Returns:
- The amount of the assignment
-
setAmount
Sets the amount of the assignment.- Parameters:
amount- The amount of the assignment
-
getAccountReference
Gets theaccount referencerelated to the assignment.- Returns:
- The
account referencerelated to the assignment
-
setAccountReference
Sets theaccount referencerelated to the assignment.- Parameters:
reference- Theaccount referencerelated to the assignment
-
getChargedItemKey
public int getChargedItemKey()Gets the key of thecharged itemrelated to the assignment.- Returns:
- The key of the
charged itemrelated to the assignment
-
setChargedItemKey
public void setChargedItemKey(int chargedItemKey) Sets the key of thecharged itemrelated to the assignment.- Parameters:
chargedItemKey- The key of thecharged itemrelated to the assignment
-
getTagName
Description copied from interface:ITagNameProviderGets the XML tag name of the HCI model.- Returns:
- The XML tag name
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- 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.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshalAttributes
Description copied from interface:IXMLMarshallableGives an XML representation of the attributes of an object.- Parameters:
output- TheXML outputto marshal the object attributes into
-
marshalChildren
Description copied from interface:IXMLMarshallableGives an XML representation of the child objects of an object.- Parameters:
output- TheXML outputto marshal the child objects into
-