anon.pay.xml
Class XMLBankAccount

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

public class XMLBankAccount
extends java.lang.Object
implements IXMLEncodable

XML Structure for the bank account information for a Mix Operator (e.g. email-address used for paypal, or bank name and bank account number) type: how does the Mixoperator want to get paid? (e.g. paypal) details: information needed by the BI operator for paying the MixOperator (e.g. email address) Since the structure of the details depends on the type (different types of payment require different kinds and amounts of information), all the info is lumped together into the one String m_details

Author:
Elmar Schraml

Field Summary
private  java.lang.String m_details
           
private  org.w3c.dom.Document m_docTheBankAccount
           
private  java.lang.String m_operatorCert
           
private  java.lang.String m_type
           
static java.lang.String ms_strElemName
           
 
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
XMLBankAccount(byte[] xmldata)
           
XMLBankAccount(char[] xml)
           
XMLBankAccount(org.w3c.dom.Document xml)
           
XMLBankAccount(org.w3c.dom.Element xml)
           
XMLBankAccount(java.lang.String xml)
           
XMLBankAccount(java.lang.String type, java.lang.String details)
           
XMLBankAccount(java.lang.String type, java.lang.String details, java.lang.String operatorCert)
           
 
Method Summary
 java.lang.String getDetails()
           
 java.lang.String getOperatorCert()
           
 java.lang.String getType()
           
private  org.w3c.dom.Node internal_toXmlElement(org.w3c.dom.Document a_doc)
          internal_toXmlElement
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_type

private java.lang.String m_type

m_details

private java.lang.String m_details

m_operatorCert

private java.lang.String m_operatorCert

m_docTheBankAccount

private org.w3c.dom.Document m_docTheBankAccount

ms_strElemName

public static java.lang.String ms_strElemName
Constructor Detail

XMLBankAccount

public XMLBankAccount(java.lang.String type,
                      java.lang.String details)

XMLBankAccount

public XMLBankAccount(java.lang.String type,
                      java.lang.String details,
                      java.lang.String operatorCert)

XMLBankAccount

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

XMLBankAccount

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

XMLBankAccount

public XMLBankAccount(byte[] xmldata)
               throws java.lang.Exception
Throws:
java.lang.Exception

XMLBankAccount

public XMLBankAccount(org.w3c.dom.Element xml)
               throws java.lang.Exception
Throws:
java.lang.Exception

XMLBankAccount

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

internal_toXmlElement

private org.w3c.dom.Node internal_toXmlElement(org.w3c.dom.Document a_doc)
internal_toXmlElement

Parameters:
m_docTheBankAccount - Document
Returns:
Node

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

getType

public java.lang.String getType()

getDetails

public java.lang.String getDetails()

getOperatorCert

public java.lang.String getOperatorCert()

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