org.opennms.bb.eui.operator.utils
Class EUIUserProfParser

java.lang.Object
  |
  +--org.opennms.bb.common.utils.BBParser
        |
        +--org.opennms.bb.eui.operator.utils.EUIUserProfParser

public class EUIUserProfParser
extends BBParser

EUIUserProfileParser reads the user preferences for the real time
 console 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 Modifications: 04/18/00 - Changed the parser to extend BBParser - 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 ICONBAR
           
(package private)  String LOOKNFEEL
           
(package private)  String MENU
           
(package private)  String PARM
           
(package private)  String PARM_NAME
           
(package private)  String PARM_VALUE
           
(package private)  String RTC
           
(package private)  String TAB_PLACE
           
(package private)  Hashtable userHash
           
(package private)  String VIEWS
           
(package private)  String VIEWTAB
           
(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
EUIUserProfParser()
          Creates the 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  boolean processOperatorElement(org.w3c.dom.Node opNode)
           
protected  boolean processOperatorParmNode(org.w3c.dom.Node opNode, Vector viewsVector)
           
protected  String processParmName(org.w3c.dom.Node parmNameNode)
           
 
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

RTC

final String RTC

XPOS

final String XPOS

YPOS

final String YPOS

WIDTH

final String WIDTH

HEIGHT

final String HEIGHT

TAB_PLACE

final String TAB_PLACE

LOOKNFEEL

final String LOOKNFEEL

VIEWTAB

final String VIEWTAB

MENU

final String MENU

ICONBAR

final String ICONBAR

VIEWS

final String VIEWS
Constructor Detail

EUIUserProfParser

public EUIUserProfParser()
Creates the 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

processOperatorElement

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

processOperatorParmNode

protected boolean processOperatorParmNode(org.w3c.dom.Node opNode,
                                          Vector viewsVector)

processParmName

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

getUserProfile

public Hashtable getUserProfile()