anon.pay.xml
Class XMLVolumePlans
java.lang.Object
anon.pay.xml.XMLVolumePlans
- All Implemented Interfaces:
- IXMLEncodable
public class XMLVolumePlans
- extends java.lang.Object
- implements IXMLEncodable
A Vector of XMLVolumePlans
...content of a single XMLVolumePlan ...
...
...
- Author:
- Elmar Schraml
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_NAME
- See Also:
- Constant Field Values
m_volumePlans
private java.util.Vector m_volumePlans
m_docTheVolumePlans
private org.w3c.dom.Document m_docTheVolumePlans
XMLVolumePlans
public XMLVolumePlans()
XMLVolumePlans
public XMLVolumePlans(java.util.Vector thePlans)
XMLVolumePlans
public XMLVolumePlans(java.lang.String xml)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLVolumePlans
public XMLVolumePlans(org.w3c.dom.Element elemPlans)
throws java.lang.Exception
- Throws:
java.lang.Exception
XMLVolumePlans
public XMLVolumePlans(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)
- 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
setValues
private void setValues(org.w3c.dom.Element elemRoot)
throws java.lang.Exception
- Throws:
java.lang.Exception
insertByPrice
private void insertByPrice(XMLVolumePlan a_plan)
internal_toXmlElement
private org.w3c.dom.Element internal_toXmlElement(org.w3c.dom.Document doc)
getVolumePlans
public java.util.Vector getVolumePlans()
- getVolumePlans
- Returns:
- Vector: contains XMLVolumePlan objects, might be empty if no plans have been defined
getVolumePlan
public XMLVolumePlan getVolumePlan(java.lang.String name)
- get a specific plan by name (currently does NOT support localized names!)
- Parameters:
name
- String
- Returns:
- XMLVolumePlan
getVolumePlan
public XMLVolumePlan getVolumePlan(int index)
getNrOfPlans
public int getNrOfPlans()
addVolumePlan
public void addVolumePlan(XMLVolumePlan a_plan)