anon.pay.xml
Class XMLBalance
java.lang.Object
anon.pay.xml.XMLBalance
- All Implemented Interfaces:
- IXMLEncodable
public class XMLBalance
- extends java.lang.Object
- implements IXMLEncodable
This class holds a balance certificate. Can be converted to and from
XML
Constructor Summary |
XMLBalance(org.w3c.dom.Document doc)
|
XMLBalance(org.w3c.dom.Element elemBalance)
|
XMLBalance(long accountNumber,
long deposit,
long spent,
java.sql.Timestamp timestamp,
java.sql.Timestamp validTime,
IMyPrivateKey signer)
|
XMLBalance(java.lang.String xmlDoc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_lAccountNumber
private long m_lAccountNumber
m_Timestamp
private java.sql.Timestamp m_Timestamp
m_ValidTime
private java.sql.Timestamp m_ValidTime
m_lDeposit
private long m_lDeposit
m_lSpent
private long m_lSpent
m_docTheBalance
private org.w3c.dom.Document m_docTheBalance
XMLBalance
public XMLBalance(long accountNumber,
long deposit,
long spent,
java.sql.Timestamp timestamp,
java.sql.Timestamp validTime,
IMyPrivateKey signer)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLBalance
public XMLBalance(org.w3c.dom.Document doc)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLBalance
public XMLBalance(java.lang.String xmlDoc)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLBalance
public XMLBalance(org.w3c.dom.Element elemBalance)
throws java.lang.Exception
- Throws:
java.lang.Exception
setValues
private void setValues(org.w3c.dom.Element elemRoot)
throws java.lang.Exception
- Throws:
java.lang.Exception
internal_toXmlElement
private org.w3c.dom.Element internal_toXmlElement(org.w3c.dom.Document a_doc)
getAccountNumber
public long getAccountNumber()
getDeposit
public long getDeposit()
getSpent
public long getSpent()
getCredit
public long getCredit()
getTimestamp
public java.sql.Timestamp getTimestamp()
getValidTime
public java.sql.Timestamp getValidTime()
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
- Description copied from interface:
IXMLEncodable
- Return an element that can be appended to the document. This
Method must not change the document in any way!
- Specified by:
toXmlElement
in interface IXMLEncodable
- Parameters:
a_doc
- a document
- Returns:
- the interface as xml element