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

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

public class EUIEventsParser
extends BBParser

EUIEventsParser parses the events level data response and stores
 data in a vector of vectors(for each event)

 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 Modifications: 10/24/00 - Changed the parser to incorporate the new XML events structure - Jacinta

Inner classes inherited from class org.opennms.bb.common.utils.BBParser
BBParser.BBErrorHandler
 
Field Summary
(package private)  String AUTOACTION
           
(package private)  String DAY
           
(package private)  String DESCR
           
(package private)  String DESCRIP
           
(package private)  String DEST
           
(package private)  String EID
           
(package private)  String EVENT
           
(package private)  String EVENT_OVERVIEW
           
(package private)  String EVENTS
           
(package private)  Vector eventsVector
           
(package private)  String FORWARD
           
(package private)  String GENERIC
           
(package private)  String HOST
           
(package private)  String HOUR
           
(package private)  int INITIAL_CAPACITY
           
(package private)  String INSTRUCTIONS
           
(package private)  String LOGGROUP
           
(package private)  String LOGMSG
           
(package private)  String MENUTEXT
           
(package private)  String MIN
           
(package private)  String MONTH
           
(package private)  String MOUSEOVERTEXT
           
(package private)  String NOTIFICATION
           
(package private)  String OPERACTION
           
(package private)  String OPERINSTRUCT
           
(package private)  String PARM
           
(package private)  String PARM_NAME
           
(package private)  String PARM_VALUE
           
(package private)  String PARMS
           
(package private)  String SEC
           
(package private)  String SEVERITY
           
(package private)  String SNMPHOST
          Changes made by Jacinta on Oct 24.
(package private)  String SOURCE
           
(package private)  String SPECIFIC
           
(package private)  String STATE
           
(package private)  String TIME
           
(package private)  String TTICKET
           
(package private)  String TYPE
           
(package private)  String YEAR
           
 
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
EUIEventsParser()
          Creates the DOM parser
 
Method Summary
 Vector getEvents()
           
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 processEventNode(org.w3c.dom.Node eventNode)
           
protected  boolean processEventsElement(org.w3c.dom.Node eventsNode)
           
protected  Vector processParm(org.w3c.dom.Node parmsNode)
           
protected  String processParmName(org.w3c.dom.Node parmNameNode)
           
protected  boolean processParms(org.w3c.dom.Node parmsNode, Vector eventVector, Hashtable eventHash)
           
protected  String stripWhiteSpaces(String inp)
           
 
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

eventsVector

Vector eventsVector

EVENTS

final String EVENTS

EVENT

final String EVENT

SOURCE

final String SOURCE

EID

final String EID

TIME

final String TIME

HOST

final String HOST

PARMS

final String PARMS

PARM

final String PARM

PARM_NAME

final String PARM_NAME

PARM_VALUE

final String PARM_VALUE

YEAR

final String YEAR

MONTH

final String MONTH

DAY

final String DAY

HOUR

final String HOUR

MIN

final String MIN

SEC

final String SEC

TYPE

final String TYPE

SPECIFIC

final String SPECIFIC

GENERIC

final String GENERIC

SEVERITY

final String SEVERITY

DESCR

final String DESCR

INSTRUCTIONS

final String INSTRUCTIONS

EVENT_OVERVIEW

final String EVENT_OVERVIEW

SNMPHOST

final String SNMPHOST
Changes made by Jacinta on Oct 24.

DESCRIP

final String DESCRIP

OPERINSTRUCT

final String OPERINSTRUCT

OPERACTION

final String OPERACTION

AUTOACTION

final String AUTOACTION

LOGGROUP

final String LOGGROUP

LOGMSG

final String LOGMSG

DEST

final String DEST

NOTIFICATION

final String NOTIFICATION

TTICKET

final String TTICKET

FORWARD

final String FORWARD

STATE

final String STATE

MOUSEOVERTEXT

final String MOUSEOVERTEXT

MENUTEXT

final String MENUTEXT

INITIAL_CAPACITY

final int INITIAL_CAPACITY
Constructor Detail

EUIEventsParser

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

processEventsElement

protected boolean processEventsElement(org.w3c.dom.Node eventsNode)

processEventNode

protected boolean processEventNode(org.w3c.dom.Node eventNode)

processParms

protected boolean processParms(org.w3c.dom.Node parmsNode,
                               Vector eventVector,
                               Hashtable eventHash)

processParm

protected Vector processParm(org.w3c.dom.Node parmsNode)

processParmName

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

stripWhiteSpaces

protected String stripWhiteSpaces(String inp)

getEvents

public Vector getEvents()