public class TestcaseParser extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ac,
int i,
int j) |
void |
endElement(String uri,
String localName,
String qName) |
static Testcase |
parseXml(hudson.FilePath xmlFile)
Parse an XML file to retrieve a testcase info instance (non null)
|
void |
startElement(String s,
String s1,
String elementName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic static Testcase parseXml(hudson.FilePath xmlFile) throws IOException
xmlFile - testcase_information.xmlIOException - if the xml file cannot be read or has a wrong formatpublic void startElement(String s, String s1, String elementName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void characters(char[] ac,
int i,
int j)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2004-2015 PikeTec GmbH. All Rights Reserved.