org.opennms.bb.eui.operator.utils
Class EUIDataParser
java.lang.Object
|
+--org.opennms.bb.common.utils.BBParser
|
+--org.opennms.bb.eui.operator.utils.EUIDataParser
- public class EUIDataParser
- extends BBParser
EUIDataParser parses the data returned for each level and stores
the data in a vector
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
Method Summary |
Vector |
getLevelsVector()
|
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 |
processEntityNode(org.w3c.dom.Node entityNode,
Vector entities)
|
protected boolean |
processLevelNode(org.w3c.dom.Node levelNode)
|
protected boolean |
processLevelsElement(org.w3c.dom.Node levelsNode)
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
levelsVector
Vector levelsVector
LEVELS
public final String LEVELS
LEVEL
public final String LEVEL
NAME
public final String NAME
DESCR
public final String DESCR
NORMAL
public final String NORMAL
WARNING
public final String WARNING
ENTITY
public final String ENTITY
LABEL
public final String LABEL
IP
public final String IP
EDESCR
public final String EDESCR
ENAME
public final String ENAME
VALUE
public final String VALUE
ENTITIES
public final String ENTITIES
INITIAL_CAPACITY
final int INITIAL_CAPACITY
EUIDataParser
public EUIDataParser()
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
processLevelsElement
protected boolean processLevelsElement(org.w3c.dom.Node levelsNode)
processLevelNode
protected boolean processLevelNode(org.w3c.dom.Node levelNode)
processEntityNode
protected boolean processEntityNode(org.w3c.dom.Node entityNode,
Vector entities)
getLevelsVector
public Vector getLevelsVector()