anon.pay.xml
Class XMLVolumePlanPurchase
java.lang.Object
anon.pay.xml.XMLVolumePlanPurchase
- All Implemented Interfaces:
- IXMLEncodable
public class XMLVolumePlanPurchase
- extends java.lang.Object
- implements IXMLEncodable
- Author:
- Elmar Schraml
XML representation of a request by a JAP to buy a specific volume plan
The plan is identified by name, it's up to the JPI to get the corresponding information
from its database (reason: we don't want a JAP to supply modified values for e.g. price)
Method Summary |
long |
getAccountNumber()
|
java.lang.String |
getPlanName()
|
org.w3c.dom.Element |
internal_toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document. |
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 |
m_docTheVolumePlanPurchase
private org.w3c.dom.Document m_docTheVolumePlanPurchase
m_accountNumber
private long m_accountNumber
m_planName
private java.lang.String m_planName
XMLVolumePlanPurchase
public XMLVolumePlanPurchase(long a_accountNumber,
java.lang.String a_planName)
XMLVolumePlanPurchase
public XMLVolumePlanPurchase(java.lang.String xml)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPlanName
public java.lang.String getPlanName()
getAccountNumber
public long getAccountNumber()
internal_toXmlElement
public org.w3c.dom.Element internal_toXmlElement(org.w3c.dom.Document a_doc)
- Return an element that can be appended to the document.
- Parameters:
a_doc
- a document
- Returns:
- the interface as xml element
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