anon.pay.xml
Class XMLExternalChargeRequest

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

public class XMLExternalChargeRequest
extends java.lang.Object
implements IXMLEncodable

This class represents an external charge request. It can be used for charging accounts for given transfer numbers with given amounts and currencies. With the help of this class one can charge accounts manually, e.g. by checking bank account statements for transfer numbers in the reference field.

Author:
Tobias Bayer

Field Summary
private  java.util.Vector m_chargeRequest
          Holds a String[] of the following form: 1: tan, 2: currency, 3: amount
private  java.lang.String m_password
          Password
 
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
XMLExternalChargeRequest()
           
XMLExternalChargeRequest(byte[] xml)
           
XMLExternalChargeRequest(char[] xml)
           
XMLExternalChargeRequest(org.w3c.dom.Document a_doc)
           
XMLExternalChargeRequest(java.lang.String xml)
           
 
Method Summary
 void addCharge(java.lang.String a_tan, java.lang.String a_currency, java.lang.String a_amount)
           
 java.util.Enumeration getChargeLines()
           
 java.lang.String getPassword()
           
 void setPassword(java.lang.String a_password)
           
protected  void setValues(org.w3c.dom.Element elemRoot)
           
 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_chargeRequest

private java.util.Vector m_chargeRequest
Holds a String[] of the following form: 1: tan, 2: currency, 3: amount


m_password

private java.lang.String m_password
Password

Constructor Detail

XMLExternalChargeRequest

public XMLExternalChargeRequest()

XMLExternalChargeRequest

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

XMLExternalChargeRequest

public XMLExternalChargeRequest(char[] xml)
                         throws java.lang.Exception
Throws:
java.lang.Exception

XMLExternalChargeRequest

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

XMLExternalChargeRequest

public XMLExternalChargeRequest(org.w3c.dom.Document a_doc)
Method Detail

setPassword

public void setPassword(java.lang.String a_password)

getPassword

public java.lang.String getPassword()

addCharge

public void addCharge(java.lang.String a_tan,
                      java.lang.String a_currency,
                      java.lang.String a_amount)

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

setValues

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

getChargeLines

public java.util.Enumeration getChargeLines()