anon.pay.xml
Class XMLVolumePlans

java.lang.Object
  extended by 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

Field Summary
private  org.w3c.dom.Document m_docTheVolumePlans
           
private  java.util.Vector m_volumePlans
           
static java.lang.String XML_ELEMENT_NAME
           
 
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
XMLVolumePlans()
           
XMLVolumePlans(org.w3c.dom.Document document)
           
XMLVolumePlans(org.w3c.dom.Element elemPlans)
           
XMLVolumePlans(java.lang.String xml)
           
XMLVolumePlans(java.util.Vector thePlans)
           
 
Method Summary
 void addVolumePlan(XMLVolumePlan a_plan)
           
 int getNrOfPlans()
           
 XMLVolumePlan getVolumePlan(int index)
           
 XMLVolumePlan getVolumePlan(java.lang.String name)
          get a specific plan by name (currently does NOT support localized names!)
 java.util.Vector getVolumePlans()
          getVolumePlans
private  void insertByPrice(XMLVolumePlan a_plan)
           
private  org.w3c.dom.Element internal_toXmlElement(org.w3c.dom.Document doc)
           
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

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
Constructor Detail

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
Method Detail

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)