anon.pay.xml
Class XMLTransCert

java.lang.Object
  extended by anon.pay.xml.XMLTransCert
All Implemented Interfaces:
IXMLEncodable

public class XMLTransCert
extends java.lang.Object
implements IXMLEncodable


Field Summary
private  long m_accountNumber
           
private  long m_deposit
           
private  org.w3c.dom.Document m_docTheTransCert
           
private  java.util.Date m_receivedDate
           
private  long m_transferNumber
           
private  java.util.Date m_usedDate
           
private  java.sql.Timestamp m_validTime
           
static java.lang.String XML_ELEMENT_NAME_TRANSFER_CERTIFICATE
           
static java.lang.String XML_ELEMENT_NAME_TRANSFER_CERTIFICATES
           
 
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
XMLTransCert(org.w3c.dom.Document xml)
           
XMLTransCert(org.w3c.dom.Element xml)
          Creates an TransCert from an existing XML docuemnt
XMLTransCert(long accountNumber, long transferNumber, long deposit, java.sql.Timestamp validTime)
           
XMLTransCert(java.lang.String xml)
           
 
Method Summary
 long getAccountNumber()
           
 java.util.Date getReceivedDate()
           
 long getTransferNumber()
           
 java.util.Date getUsedDate()
           
 java.sql.Timestamp getValidTime()
           
private  org.w3c.dom.Element internal_toXmlElement(org.w3c.dom.Document a_doc)
          toXmlElement
 void setReceivedDate(java.util.Date a_date)
           
 void setUsedDate(java.util.Date a_date)
           
private  void setValues(org.w3c.dom.Element elemRoot)
           
 boolean sign(IMyPrivateKey key)
           
 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_validTime

private java.sql.Timestamp m_validTime

m_receivedDate

private java.util.Date m_receivedDate

m_usedDate

private java.util.Date m_usedDate

m_accountNumber

private long m_accountNumber

m_transferNumber

private long m_transferNumber

m_deposit

private long m_deposit

m_docTheTransCert

private org.w3c.dom.Document m_docTheTransCert

XML_ELEMENT_NAME_TRANSFER_CERTIFICATES

public static final java.lang.String XML_ELEMENT_NAME_TRANSFER_CERTIFICATES
See Also:
Constant Field Values

XML_ELEMENT_NAME_TRANSFER_CERTIFICATE

public static final java.lang.String XML_ELEMENT_NAME_TRANSFER_CERTIFICATE
See Also:
Constant Field Values
Constructor Detail

XMLTransCert

public XMLTransCert(long accountNumber,
                    long transferNumber,
                    long deposit,
                    java.sql.Timestamp validTime)

XMLTransCert

public XMLTransCert(java.lang.String xml)
             throws java.lang.Exception
Throws:
java.lang.Exception

XMLTransCert

public XMLTransCert(org.w3c.dom.Element xml)
             throws java.lang.Exception
Creates an TransCert from an existing XML docuemnt

Parameters:
xml - the node that represents the TransCert
Throws:
java.lang.Exception

XMLTransCert

public XMLTransCert(org.w3c.dom.Document xml)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setReceivedDate

public void setReceivedDate(java.util.Date a_date)

setUsedDate

public void setUsedDate(java.util.Date a_date)

getReceivedDate

public java.util.Date getReceivedDate()

getUsedDate

public java.util.Date getUsedDate()

getAccountNumber

public long getAccountNumber()

getTransferNumber

public long getTransferNumber()

getValidTime

public java.sql.Timestamp getValidTime()

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)
toXmlElement

Parameters:
a_doc - Document
Returns:
Element

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

sign

public boolean sign(IMyPrivateKey key)