public static class AccountOperation.AmountAssignment extends HCIModelAdapter
account operation to an account.
An amount assignment contains:
account referencecharged item keyThe 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>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this object: "amountAssignment"
|
| Constructor and Description |
|---|
AmountAssignment()
Builds an uninitialized amount assignment.
|
AmountAssignment(Money amount,
AccountOperation.AccountReference reference,
int chargedItemKey)
Builds an amount assignment with an amount, an
account reference
and a charged item key. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
AccountOperation.AccountReference |
getAccountReference()
Gets the
account reference related to the assignment. |
Money |
getAmount()
Gets the amount of the assignment.
|
int |
getChargedItemKey()
Gets the key of the
charged item related to the assignment. |
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model.
|
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAccountReference(AccountOperation.AccountReference reference)
Sets the
account reference related to the assignment. |
void |
setAmount(Money amount)
Sets the amount of the assignment.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setChargedItemKey(int chargedItemKey)
Sets the key of the
charged item related to the assignment. |
marshalpublic static final java.lang.String TAG_NAME
public AmountAssignment()
public AmountAssignment(Money amount, AccountOperation.AccountReference reference, int chargedItemKey)
account reference
and a charged item key.amount - The amount of the assignmentreference - The account reference related to the assignmentchargedItemKey - The key of the charged item related to the assignmentpublic Money getAmount()
public void setAmount(Money amount)
amount - The amount of the assignmentpublic AccountOperation.AccountReference getAccountReference()
account reference related to the assignment.account reference related to the assignmentpublic void setAccountReference(AccountOperation.AccountReference reference)
account reference related to the assignment.reference - The account reference related to the assignmentpublic int getChargedItemKey()
charged item related to the assignment.charged item related to the assignmentpublic void setChargedItemKey(int chargedItemKey)
charged item related to the assignment.chargedItemKey - The key of the charged item related to the assignmentpublic java.lang.String getTagName()
ITagNameProviderpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects into