public class TestSuiteXmlParser extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
TestSuiteXmlParser() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
boolean |
isValid() |
Collection<ReportTestSuite> |
parse(InputStreamReader stream) |
Collection<ReportTestSuite> |
parse(String xmlPath) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public Collection<ReportTestSuite> parse(String xmlPath) throws ParserConfigurationException, SAXException, IOException
public Collection<ReportTestSuite> parse(InputStreamReader stream) throws ParserConfigurationException, SAXException, IOException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public boolean isValid()
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.