anon.pay.xml
Class XMLMixInfo
java.lang.Object
anon.pay.xml.XMLMixInfo
- All Implemented Interfaces:
- IXMLEncodable
public class XMLMixInfo
- extends java.lang.Object
- implements IXMLEncodable
XML Structure containing information about a single Mix,
intended for use in the MixConfig tool to give a MixOperator an overview
of his Mixes and finacial status.
- Author:
- Elmar Schraml
Constructor Summary |
XMLMixInfo(byte[] xmldata)
|
XMLMixInfo(org.w3c.dom.Element xml)
|
XMLMixInfo(java.lang.String xml)
|
XMLMixInfo(java.lang.String mixCert,
int balance,
java.sql.Timestamp updateTime,
int operatorId,
int id)
contains all the information contained in the database about one particular Mix
(but for balance info, use the signed MixAccountBalance) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_mixCert
private java.lang.String m_mixCert
m_balance
private int m_balance
m_updateTime
private java.sql.Timestamp m_updateTime
m_operatorId
private int m_operatorId
m_id
private int m_id
m_docTheMixInfo
private org.w3c.dom.Document m_docTheMixInfo
XMLMixInfo
public XMLMixInfo(java.lang.String mixCert,
int balance,
java.sql.Timestamp updateTime,
int operatorId,
int id)
- contains all the information contained in the database about one particular Mix
(but for balance info, use the signed MixAccountBalance)
- Parameters:
rate
- intcreationTime
- TimestampbiID
- String
XMLMixInfo
public XMLMixInfo(java.lang.String xml)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLMixInfo
public XMLMixInfo(byte[] xmldata)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLMixInfo
public XMLMixInfo(org.w3c.dom.Element xml)
throws java.lang.Exception
- Throws:
java.lang.Exception
setValues
private void setValues(org.w3c.dom.Element xml)
throws java.lang.Exception
- Parses the XML representation and sets the internal values
- Parameters:
xml
- Node
- Throws:
java.lang.Exception
getUpdateTime
public java.sql.Timestamp getUpdateTime()
getBalance
public int getBalance()
getMixCert
public java.lang.String getMixCert()
getOperatorId
public int getOperatorId()
getId
public int getId()
toXmlElement
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
- Return an element that can be appended to the document.
- Specified by:
toXmlElement
in interface IXMLEncodable
- Parameters:
a_doc
- a document
- Returns:
- the interface as xml element