|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.pay.xml.XMLAccountInfo
public class XMLAccountInfo
This class represents an XML AccountInfo structure (XMLBalance plus cost confirmations for the account) The following XML structure is used:
<AccountInfo>
<Balance>
<AccountNumber> ..</AccountNumber>
<Deposit>...</Deposit>
<Spent>....</Spent>
<Validtime>...</Validtime>
<Timestamp>...</Timestamp>
<Signature> //Unterschrift der BI
...
</Signature>
</Balance>
<CostConfirmations> //Kostenbest?tigungen, die
von den einzelnen AI's
abgerechnet wurden
<CC>...</CC>
<CC>...</CC>
</CostConfirmations>
</AccountInfo>
| Field Summary | |
|---|---|
private XMLBalance |
m_balance
the balance certificate |
private java.util.Hashtable |
m_costConfirmations
a collection of costconfirmations (one for each mixcascade that was used with this account) |
static java.lang.String |
XML_ELEMENT_NAME_COST_CONFIRMATIONS
|
| Fields inherited from interface anon.util.IXMLEncodable |
|---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
| Constructor Summary | |
|---|---|
XMLAccountInfo()
|
|
XMLAccountInfo(org.w3c.dom.Document document)
XMLAccountInfo |
|
XMLAccountInfo(org.w3c.dom.Element xml)
Creates a Balance from an existing XML docuemnt |
|
XMLAccountInfo(java.lang.String xml)
Creates an AccountInfo object from a string. |
|
XMLAccountInfo(XMLBalance bal)
|
|
| Method Summary | |
|---|---|
long |
addCC(XMLEasyCC a_cc)
Adds a cost confirmation xml structure to the accountinfo. |
long |
getAllCCsTransferredBytes()
returns the overall sum of all the transfered bytes of all CCs belonging to this account. |
XMLBalance |
getBalance()
|
XMLEasyCC |
getCC(java.lang.String priceCertHash)
getCC - returns the cost confirmation with the specified aiName |
java.util.Enumeration |
getCCs()
Returns an enumeration of all the available cost confirmations for this account. |
void |
setBalance(XMLBalance b1)
setBalance |
private void |
setValues(org.w3c.dom.Element elemRoot)
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document. |
| 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 XML_ELEMENT_NAME_COST_CONFIRMATIONS
private XMLBalance m_balance
private java.util.Hashtable m_costConfirmations
| Constructor Detail |
|---|
public XMLAccountInfo(XMLBalance bal)
public XMLAccountInfo(java.lang.String xml)
throws java.lang.Exception
java.lang.Exceptionpublic XMLAccountInfo()
public XMLAccountInfo(org.w3c.dom.Element xml)
throws java.lang.Exception
xml - the node that represents the Balanceverifier - JAPSignature must be initialized and ready to verify XML (or null)
java.lang.Exception - on invalid xml format or invalid signature
public XMLAccountInfo(org.w3c.dom.Document document)
throws java.lang.Exception
document - Document
java.lang.Exception| Method Detail |
|---|
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement in interface IXMLEncodablea_doc - a document
public long addCC(XMLEasyCC a_cc)
throws java.lang.Exception
xmlCC - XMLEasyCC
java.lang.Exception
private void setValues(org.w3c.dom.Element elemRoot)
throws java.lang.Exception
java.lang.Exceptionpublic XMLBalance getBalance()
public XMLEasyCC getCC(java.lang.String priceCertHash)
string - String
public java.util.Enumeration getCCs()
public long getAllCCsTransferredBytes()
public void setBalance(XMLBalance b1)
b1 - XMLBalance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||