org.opennms.bb.dp.capsd.utils
Class CapsdPluginParser

java.lang.Object
  |
  +--org.opennms.bb.common.utils.BBParser
        |
        +--org.opennms.bb.dp.capsd.utils.CapsdPluginParser

public class CapsdPluginParser
extends BBParser

 CapsdPluginParser parses the 'capsdPluginXML.xml' to get 
 plugin information for this poller

 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 CLASSNAME
           
(package private)  String DBCAPABILITY
           
(package private)  long m_curPollerIP
           
(package private)  long m_ipAddr
           
(package private)  List m_plugins
           
(package private)  String NAME
           
(package private)  String PLUGIN
           
(package private)  String PLUGINS
           
(package private)  String POLLERIP
          XML TAGS that are relevant
(package private)  String TYPE
           
 
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
CapsdPluginParser(long ipAddr)
          Creates the DOM parser and the data stores
 
Method Summary
 List getPlugins()
          Returns the poller plugins
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 processPlugin(org.w3c.dom.Element pluginNode)
           
protected  boolean processPlugins(org.w3c.dom.Element pluginsNode)
           
 
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

m_ipAddr

long m_ipAddr

m_plugins

List m_plugins

m_curPollerIP

long m_curPollerIP

POLLERIP

final String POLLERIP
XML TAGS that are relevant

TYPE

final String TYPE

PLUGINS

final String PLUGINS

PLUGIN

final String PLUGIN

NAME

final String NAME

DBCAPABILITY

final String DBCAPABILITY

CLASSNAME

final String CLASSNAME
Constructor Detail

CapsdPluginParser

public CapsdPluginParser(long ipAddr)
                  throws IOException
Creates the DOM parser and the data stores
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

processPlugins

protected boolean processPlugins(org.w3c.dom.Element pluginsNode)

processPlugin

protected boolean processPlugin(org.w3c.dom.Element pluginNode)

getPlugins

public List getPlugins()
Returns the poller plugins