anon.pay.xml
Class XMLPaymentOptions
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_currencies
private java.util.Vector m_currencies
m_paymentOptions
private java.util.Vector m_paymentOptions
m_acceptedCreditCards
private java.lang.String m_acceptedCreditCards
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
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
- Stringa_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()