org.opennms.bb.eui.admin.utils
Class AdminMainUserProfParser

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

public class AdminMainUserProfParser
extends BBParser

AdminMainUserProfileParser reads the user preferences for the ADMIN
 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 ADMIN_STR
           
(package private)  String APPL
           
(package private)  String APPLNAME
           
(package private)  String HEIGHT
           
(package private)  String LAYOUT
           
(package private)  String LOOKNFEEL
           
(package private)  String PARM
           
(package private)  String PARM_NAME
           
(package private)  String PARM_VALUE
           
(package private)  String ROWCOL
           
(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
AdminMainUserProfParser()
          Parses from the filename passed in
 
Method Summary
 Hashtable getUserProfile()
           
protected  boolean processAdminMainElement(org.w3c.dom.Node opNode)
           
protected  boolean processAdminMainParmNode(org.w3c.dom.Node opNode)
           
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)
           
 
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

ADMIN_STR

final String ADMIN_STR

XPOS

final String XPOS

YPOS

final String YPOS

WIDTH

final String WIDTH

HEIGHT

final String HEIGHT

LOOKNFEEL

final String LOOKNFEEL

ROWCOL

final String ROWCOL

LAYOUT

final String LAYOUT
Constructor Detail

AdminMainUserProfParser

public AdminMainUserProfParser()
Parses from the filename passed in
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

processAdminMainElement

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

processAdminMainParmNode

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

processParmName

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

getUserProfile

public Hashtable getUserProfile()