anon.pay.xml
Class XMLPaymentOptions

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

public class XMLPaymentOptions
extends java.lang.Object
implements IXMLEncodable

This class represents a XMLPaymentOptions structure.

Author:
Tobias Bayer

Field Summary
private  java.lang.String m_acceptedCreditCards
           
private  java.util.Vector m_currencies
           
private  java.util.Vector m_paymentOptions
           
 
Fields inherited from interface anon.util.IXMLEncodable
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_VERSION
 
Constructor Summary
XMLPaymentOptions()
           
XMLPaymentOptions(org.w3c.dom.Document document)
           
XMLPaymentOptions(org.w3c.dom.Element xml)
           
XMLPaymentOptions(java.lang.String xml)
           
 
Method Summary
 void addCurrency(java.lang.String a_currency)
           
 void addOption(XMLPaymentOption a_option)
           
 java.lang.String getAcceptedCreditCards()
           
 java.util.Vector getCurrencies()
           
 XMLPaymentOption getOption(java.lang.String a_heading, java.lang.String a_language)
          Gets a XMLPaymentOption object for the provided heading
 java.util.Enumeration getOptionHeadings(java.lang.String a_language)
           
 void setAcceptedCreditCards(java.lang.String a_acceptedCreditCards)
           
private  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_currencies

private java.util.Vector m_currencies

m_paymentOptions

private java.util.Vector m_paymentOptions

m_acceptedCreditCards

private java.lang.String m_acceptedCreditCards
Constructor Detail

XMLPaymentOptions

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

XMLPaymentOptions

public XMLPaymentOptions()

XMLPaymentOptions

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

XMLPaymentOptions

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

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

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

addOption

public void addOption(XMLPaymentOption a_option)

addCurrency

public void addCurrency(java.lang.String a_currency)

getOptionHeadings

public java.util.Enumeration getOptionHeadings(java.lang.String a_language)

getOption

public XMLPaymentOption getOption(java.lang.String a_heading,
                                  java.lang.String a_language)
Gets a XMLPaymentOption object for the provided heading

Parameters:
a_heading - String
a_language - String
Returns:
XMLPaymentOption

getCurrencies

public java.util.Vector getCurrencies()

setAcceptedCreditCards

public void setAcceptedCreditCards(java.lang.String a_acceptedCreditCards)

getAcceptedCreditCards

public java.lang.String getAcceptedCreditCards()