org.opennms.bb.eui.admin.servmodel.utils
Class SMUserProfParser

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

public class SMUserProfParser
extends BBParser

SMUserProfileParser reads the user preferences for the service model
 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 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 LOOKNFEEL
           
(package private)  String PARM
           
(package private)  String PARM_NAME
           
(package private)  String PARM_VALUE
           
(package private)  String SM_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
SMUserProfParser()
          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  String processParmName(org.w3c.dom.Node parmNameNode)
           
protected  boolean processSMElement(org.w3c.dom.Node opNode)
           
protected  boolean processSMParmNode(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

SM_STR

final String SM_STR

XPOS

final String XPOS

YPOS

final String YPOS

WIDTH

final String WIDTH

HEIGHT

final String HEIGHT

LOOKNFEEL

final String LOOKNFEEL
Constructor Detail

SMUserProfParser

public SMUserProfParser()
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

processSMElement

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

processSMParmNode

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

processParmName

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

getUserProfile

public Hashtable getUserProfile()