anon.pay.xml
Class XMLMixInfo

java.lang.Object
  extended by 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

Field Summary
private  int m_balance
           
private  org.w3c.dom.Document m_docTheMixInfo
           
private  int m_id
           
private  java.lang.String m_mixCert
           
private  int m_operatorId
           
private  java.sql.Timestamp m_updateTime
           
 
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
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)
 
Method Summary
 int getBalance()
           
 int getId()
           
 java.lang.String getMixCert()
           
 int getOperatorId()
           
 java.sql.Timestamp getUpdateTime()
           
private  void setValues(org.w3c.dom.Element xml)
          Parses the XML representation and sets the internal values
 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

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
Constructor Detail

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 - int
creationTime - Timestamp
biID - 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
Method Detail

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