|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.parsers.BBParser
org.opennms.web.eventconf.parsers.EventConfParser
This class is used to parse data from eventconf.xml file.
| Nested Class Summary |
| Nested classes inherited from class org.opennms.web.parsers.BBParser |
|
| Field Summary | |
private Event |
m_curEvent
The current event being parsed from the xml file |
private Global |
m_eventGlobalInfo
The information in the |
private java.util.List |
m_events
The list of events parsed from the xml file |
| Fields inherited from class org.opennms.web.parsers.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 | |
EventConfParser()
Default constructor, intializes the member variables |
|
| Method Summary | |
java.util.List |
getEventsList()
This method returns the list of Event objects parsed from the xml file. |
Global |
getGlobalInfo()
|
private AutoAction |
processAutoAction(org.w3c.dom.Element el)
This method is used to process an autoaction. |
private void |
processCorrelation(org.w3c.dom.Element el,
Correlation correlation)
This method is used to process a correlation tag. |
protected boolean |
processElement(org.w3c.dom.Element el,
boolean isRoot)
This method is called from the parse method and overrides the method in BBParser. |
private void |
processGlobal(org.w3c.dom.Element globalElement)
This method is used to process a mask tag. |
private void |
processMask(org.w3c.dom.Element maskElement,
Event event)
This method is used to process a mask tag. |
private void |
processMaskElement(org.w3c.dom.Element maskElement,
MaskElement element)
This method is used to process a maskelement tag. |
private OperatorAction |
processOperatorAction(org.w3c.dom.Element el)
This method is used to process an operator action. |
private void |
processSecurity(org.w3c.dom.Element securityElement)
This method is used to process a mask tag. |
private Snmp |
processSnmp(org.w3c.dom.Element snmpElement)
This method is used to process an snmp tag. |
| Methods inherited from class org.opennms.web.parsers.BBParser |
getErrorMessage, getErrorNumber, parse, parse, parse, parse, processDocument, processNode, processParmValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.util.List m_events
private Event m_curEvent
private Global m_eventGlobalInfo
| Constructor Detail |
public EventConfParser()
| Method Detail |
public java.util.List getEventsList()
public Global getGlobalInfo()
protected boolean processElement(org.w3c.dom.Element el,
boolean isRoot)
processElement in class BBParserel - the current tree elementisRoot - true if the element is the root of the tree
private void processGlobal(org.w3c.dom.Element globalElement)
globalElement - the DOM element to handle.private void processSecurity(org.w3c.dom.Element securityElement)
securityElement - the DOM element to handle.
private void processMask(org.w3c.dom.Element maskElement,
Event event)
maskElement - the DOM element to handle.event - the event to add the mask elements to
private void processMaskElement(org.w3c.dom.Element maskElement,
MaskElement element)
maskElement - the DOM element to handle.element - the MaskElement object to populateprivate Snmp processSnmp(org.w3c.dom.Element snmpElement)
snmpElement - the DOM element to handle.
private void processCorrelation(org.w3c.dom.Element el,
Correlation correlation)
el - the DOM element to handle.correlation - the Correlation object to buildprivate AutoAction processAutoAction(org.w3c.dom.Element el)
el - the DOM element to handle.
private OperatorAction processOperatorAction(org.w3c.dom.Element el)
el - the DOM element to handle.
|
OpenNMS API 1.1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||