uk.co.agena.minerva.model.querymodel
Class XmlHelper

java.lang.Object
  extended by uk.co.agena.minerva.model.querymodel.XmlHelper

public class XmlHelper
extends java.lang.Object

Handles all the tedious XML parsing. Each XmlHelper handles a single XML Node. It extracts all the attributes and single text elements of the form TEXT. Sub-nodes are handled as more XmlHelpers. Since multiple instances of the same TEXT can appear in a node, they are held as a Vector in the hashtable and removed as they are fetched.

Author:
hearty

Constructor Summary
XmlHelper(org.w3c.dom.Node node)
           
XmlHelper(java.lang.String filename)
           
 
Method Summary
static java.lang.String convertSpecialChars(java.lang.String in)
           
 boolean getBooleanValue(java.lang.String key)
           
 XmlHelper getHelper(int index)
           
 XmlHelper getHelper(java.lang.String name)
           
 int getsubnodecount()
           
 java.lang.String getSubnodeName(int index)
           
 java.lang.String getValue(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlHelper

public XmlHelper(java.lang.String filename)

XmlHelper

public XmlHelper(org.w3c.dom.Node node)
Method Detail

getValue

public java.lang.String getValue(java.lang.String key)

getBooleanValue

public boolean getBooleanValue(java.lang.String key)

getSubnodeName

public java.lang.String getSubnodeName(int index)

getsubnodecount

public int getsubnodecount()

getHelper

public XmlHelper getHelper(int index)

getHelper

public XmlHelper getHelper(java.lang.String name)

convertSpecialChars

public static java.lang.String convertSpecialChars(java.lang.String in)


Copyright © 2006 Agena Ltd. All Rights Reserved.