public class SystemTestDocReader extends DefaultHandler implements ISystemTestSource, Closeable
ISystemTestSource
that reads from an XML document.Modifier and Type | Class and Description |
---|---|
protected class |
SystemTestDocReader.AnnotatedHandler
Base class for annotated elements.
|
protected class |
SystemTestDocReader.ElementHandler
The base class for element handlers used by this parser.
|
protected class |
SystemTestDocReader.FunctionHandler
Handles Function elements.
|
protected class |
SystemTestDocReader.HasHandler
Handles Has elements
|
protected class |
SystemTestDocReader.InputHandler
Handles Input elements.
|
protected class |
SystemTestDocReader.TestCaseHandler
Handles TestCase elements.
|
protected class |
SystemTestDocReader.TestCasesHandler
Handles TestCases elements.
|
protected class |
SystemTestDocReader.VarHandler
Handles Var elements.
|
Constructor and Description |
---|
SystemTestDocReader()
Creates a new SystemTestDocReader object.
|
SystemTestDocReader(InputStream stream)
Creates a new SystemTestDocReader object.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
endElement(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
protected SystemTestDocReader.ElementHandler |
getCurrentElementHandler()
Returns the ElementHandler at the top of the parse stack.
|
Locator |
getDocumentLocator() |
protected InputStream |
getInputStream()
Returns the input stream for this reader.
|
SystemTestDef |
getSystemTestDef()
Returns a
SystemTestDef instance. |
protected SystemTestDocReader.ElementHandler |
popElementHandler()
Removes an ElementHandler from the top of the parse stack.
|
protected void |
pushElementHandler(SystemTestDocReader.ElementHandler handler)
Pushes the given ElementHandler onto the top of the parse stack.
|
void |
setDocumentLocator(Locator locator) |
void |
setInputStream(InputStream stream)
Changes the input stream for this reader.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
warning(SAXParseException e) |
characters, endDocument, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
public SystemTestDocReader()
public SystemTestDocReader(InputStream stream)
public SystemTestDef getSystemTestDef()
SystemTestDef
instance.getSystemTestDef
in interface ISystemTestSource
public void setInputStream(InputStream stream)
protected InputStream getInputStream()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected void pushElementHandler(SystemTestDocReader.ElementHandler handler)
protected SystemTestDocReader.ElementHandler popElementHandler()
protected SystemTestDocReader.ElementHandler getCurrentElementHandler()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
public Locator getDocumentLocator()
public void warning(SAXParseException e) throws SAXException
warning
in interface ErrorHandler
warning
in class DefaultHandler
SAXException
public void error(SAXParseException e) throws SAXException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXException
Copyright © 2024 The Cornutum Project. All rights reserved.