anon.pay.xml
Class XMLTransactionOverview

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

public class XMLTransactionOverview
extends java.lang.Object
implements IXMLEncodable

This class is used by JAP to ask the Payment Instance about used transaction numbers. JAP has to send the structure without the attributed "used" to the Payment Instance. The PI will then fill in the attributes according to its database entries. 232343455 435675747

Author:
Tobias Bayer

Field Summary
private  java.util.Vector m_tans
          Contains transfer numbers, their "used" attribute and the used date.
static java.lang.Object XML_ELEMENT_NAME
           
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_VERSION
 
Constructor Summary
XMLTransactionOverview()
           
XMLTransactionOverview(byte[] xml)
           
XMLTransactionOverview(org.w3c.dom.Document doc)
           
XMLTransactionOverview(org.w3c.dom.Element element)
           
XMLTransactionOverview(java.lang.String xml)
           
 
Method Summary
 void addTan(long a_tan)
          Adds a transfer number and sets its state to "not used".
 java.util.Vector getTans()
          Gets an vector of all transfer numbers
 boolean isUsed(long a_tan)
          Returns if a specific transfer number is marked as "used".
 void setUsed(long a_tan, boolean a_used, long a_usedDate, long amount)
          Sets a specific tan to used or not used
private  void setValues(org.w3c.dom.Element elemRoot)
           
 int size()
           
 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

XML_ELEMENT_NAME

public static final java.lang.Object XML_ELEMENT_NAME

m_tans

private java.util.Vector m_tans
Contains transfer numbers, their "used" attribute and the used date. The data is represented as a String[] with first element: tan, second element: used, third element: date, fourth element: amount

Constructor Detail

XMLTransactionOverview

public XMLTransactionOverview()

XMLTransactionOverview

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

XMLTransactionOverview

public XMLTransactionOverview(byte[] xml)
                       throws java.lang.Exception
Throws:
java.lang.Exception

XMLTransactionOverview

public XMLTransactionOverview(org.w3c.dom.Document doc)
                       throws java.lang.Exception
Throws:
java.lang.Exception

XMLTransactionOverview

public XMLTransactionOverview(org.w3c.dom.Element element)
                       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

size

public int size()

setValues

private void setValues(org.w3c.dom.Element elemRoot)
                throws java.lang.Exception
Throws:
java.lang.Exception

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

getTans

public java.util.Vector getTans()
Gets an vector of all transfer numbers

Returns:
Vector

isUsed

public boolean isUsed(long a_tan)
Returns if a specific transfer number is marked as "used".

Parameters:
a_tan - long
Returns:
boolean

setUsed

public void setUsed(long a_tan,
                    boolean a_used,
                    long a_usedDate,
                    long amount)
Sets a specific tan to used or not used

Parameters:
a_tan - long
a_used - boolean
a_usedDate - long

addTan

public void addTan(long a_tan)
Adds a transfer number and sets its state to "not used".

Parameters:
a_tan - long