org.opennms.bb.eui.admin.snmp.utils
Class SnmpUserProfParser

java.lang.Object
  |
  +--org.opennms.bb.common.utils.BBParser
        |
        +--org.opennms.bb.eui.admin.snmp.utils.SnmpUserProfParser

public class SnmpUserProfParser
extends BBParser

SnmpUserProfileParser reads the user preferences for the SNMP
 config from the user profile file

 It throws an IOException if the xml file is not found or if it does not
 conform to its DTD 

Author:
Sowmya

Inner classes inherited from class org.opennms.bb.common.utils.BBParser
BBParser.BBErrorHandler
 
Field Summary
(package private)  String APPL
           
(package private)  String APPLNAME
           
(package private)  String HEIGHT
           
(package private)  String LOOKNFEEL
           
(package private)  String PARM
           
(package private)  String PARM_NAME
           
(package private)  String PARM_VALUE
           
(package private)  String SNMP_STR
           
(package private)  Hashtable userHash
           
(package private)  String WIDTH
           
(package private)  String XPOS
           
(package private)  String YPOS
           
 
Fields inherited from class org.opennms.bb.common.utils.BBParser
ATTRIB_VALUE_PAIR_ERR, ATTRIB_VALUE_PAIR_ERR_STR, EXCEPTION, m_curElement, m_errNum, m_exceptionMsg, m_inpSource, m_parser, NULL_VALUE_ERR, NULL_VALUE_ERR_STR
 
Constructor Summary
SnmpUserProfParser()
          Creates a DOM parser
 
Method Summary
 Hashtable getUserProfile()
           
protected  boolean processElement(org.w3c.dom.Element el, boolean isRoot)
          This is the method to be overridden by sub-classes to branch off and go through the DOM tree to handle elements specific to the XML they are parsing - does nothing here
protected  String processParmName(org.w3c.dom.Node parmNameNode)
           
protected  boolean processSnmpElement(org.w3c.dom.Node opNode)
           
protected  boolean processSnmpParmNode(org.w3c.dom.Node opNode)
           
 
Methods inherited from class org.opennms.bb.common.utils.BBParser
getErrorMessage, getErrorNumber, parse, parse, parse, parse, processDocument, processNode, processParmValue
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

userHash

Hashtable userHash

APPL

final String APPL

APPLNAME

final String APPLNAME

PARM

final String PARM

PARM_NAME

final String PARM_NAME

PARM_VALUE

final String PARM_VALUE

SNMP_STR

final String SNMP_STR

XPOS

final String XPOS

YPOS

final String YPOS

WIDTH

final String WIDTH

HEIGHT

final String HEIGHT

LOOKNFEEL

final String LOOKNFEEL
Constructor Detail

SnmpUserProfParser

public SnmpUserProfParser()
Creates a DOM parser
Method Detail

processElement

protected boolean processElement(org.w3c.dom.Element el,
                                 boolean isRoot)
Description copied from class: BBParser
This is the method to be overridden by sub-classes to branch off and go through the DOM tree to handle elements specific to the XML they are parsing - does nothing here
Overrides:
processElement in class BBParser
Following copied from class: org.opennms.bb.common.utils.BBParser
Returns:
true if processed sucessfully, false otherwise

processSnmpElement

protected boolean processSnmpElement(org.w3c.dom.Node opNode)

processSnmpParmNode

protected boolean processSnmpParmNode(org.w3c.dom.Node opNode)

processParmName

protected String processParmName(org.w3c.dom.Node parmNameNode)

getUserProfile

public Hashtable getUserProfile()