anon.pay.xml
Class XMLTransCert
java.lang.Object
anon.pay.xml.XMLTransCert
- All Implemented Interfaces:
- IXMLEncodable
public class XMLTransCert
- extends java.lang.Object
- implements IXMLEncodable
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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)