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
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
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
EUIEventsParser
public EUIEventsParser()
- Creates the DOM parser
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()