|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ourgrid.common.xml.XMLParser
public class XMLParser
Objects of this class knows how to parse a MyGrid Doctor test description XML file.
Constructor Summary | |
---|---|
XMLParser(java.lang.String filePath)
The constructor. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause(org.w3c.dom.NodeList exceptionList,
java.lang.Throwable exception)
This method returns the exception cause. |
java.lang.String |
getCauseById(java.lang.String id)
This method returns a cause by a given id |
org.w3c.dom.NodeList |
getCauses(org.w3c.dom.Node node)
This method returns a node list of causes of a given causes node. |
java.lang.String[] |
getDependencies(java.lang.String testName)
This method returns the dependencies of a test. |
java.lang.String |
getDiagnostic(org.w3c.dom.Node node)
This method returns the diagnostic of a given diagnostic node. |
java.lang.String |
getDiagnosticById(java.lang.String id)
This method returns a diagnostic by a given id. |
org.w3c.dom.Element |
getDocumentElement()
This method returns the root element of the XML configuration file. |
org.w3c.dom.Node |
getExceptionDetails(org.w3c.dom.NodeList exceptionList,
java.lang.Throwable exception)
This method returns the detailed exception node according to exception. |
org.w3c.dom.NodeList |
getExceptionList(java.lang.String testName)
This method returns the Exception list of a given test. |
java.lang.String |
getExceptionName(org.w3c.dom.Node node)
This method returns the exception name of a given exception node. |
java.lang.String |
getPrescriptionById(java.lang.String id)
This method returns a prescription by a given id. |
org.w3c.dom.NodeList |
getPrescriptions(org.w3c.dom.Node node)
This method returns a node list of prescriptions of a given prescriptions node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLParser(java.lang.String filePath) throws XMLParserException, java.io.IOException
filePath
- XML configuration file path
java.io.IOException
XMLParserException
Method Detail |
---|
public org.w3c.dom.Element getDocumentElement()
public java.lang.String getDiagnosticById(java.lang.String id)
id
- Diagnostic id
public java.lang.String getCauseById(java.lang.String id)
id
- Cause id
public java.lang.String getPrescriptionById(java.lang.String id)
id
- Prescription id
public org.w3c.dom.NodeList getExceptionList(java.lang.String testName)
testName
- Test name
public java.lang.String[] getDependencies(java.lang.String testName)
testName
- Test name
public org.w3c.dom.Node getExceptionDetails(org.w3c.dom.NodeList exceptionList, java.lang.Throwable exception)
exceptionList
- Node list of exceptionsexception
- Exception catched
public java.lang.Throwable getCause(org.w3c.dom.NodeList exceptionList, java.lang.Throwable exception)
exceptionList
- Node list of exceptionsexception
- Exception catched
public java.lang.String getExceptionName(org.w3c.dom.Node node)
node
- Exception node
public java.lang.String getDiagnostic(org.w3c.dom.Node node)
node
- Diagnostic node
public org.w3c.dom.NodeList getCauses(org.w3c.dom.Node node)
node
- Causes node
public org.w3c.dom.NodeList getPrescriptions(org.w3c.dom.Node node)
node
- Prescriptions node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |