public class GeneratorSetDocReader extends DefaultHandler implements IGeneratorSetSource, Closeable
IGeneratorSetSource
that reads from an XML document.Modifier and Type | Class and Description |
---|---|
protected class |
GeneratorSetDocReader.CombineHandler
Handles Combine elements.
|
protected class |
GeneratorSetDocReader.ElementHandler
The base class for element handlers used by this parser.
|
protected class |
GeneratorSetDocReader.ExcludeHandler
Handles Exclude elements.
|
protected class |
GeneratorSetDocReader.GeneratorsHandler
Handles Generators elements.
|
protected class |
GeneratorSetDocReader.IncludeHandler
Handles Include elements.
|
protected class |
GeneratorSetDocReader.OnceHandler
Handles Once elements.
|
protected class |
GeneratorSetDocReader.TupleGeneratorHandler
Handles TupleGenerator elements.
|
protected class |
GeneratorSetDocReader.TupleHandler
Handles tuple elements.
|
protected class |
GeneratorSetDocReader.VarHandler
Handles Var elements.
|
Constructor and Description |
---|
GeneratorSetDocReader()
Creates a new GeneratorSetDocReader object.
|
GeneratorSetDocReader(InputStream stream)
Creates a new GeneratorSetDocReader object.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
endElement(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
protected GeneratorSetDocReader.ElementHandler |
getCurrentElementHandler()
Returns the ElementHandler at the top of the parse stack.
|
Locator |
getDocumentLocator() |
IGeneratorSet |
getGeneratorSet()
Returns a
GeneratorSet instance. |
protected InputStream |
getInputStream()
Returns the input stream for this reader.
|
protected GeneratorSetDocReader.ElementHandler |
popElementHandler()
Removes an ElementHandler from the top of the parse stack.
|
protected void |
pushElementHandler(GeneratorSetDocReader.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 GeneratorSetDocReader()
public GeneratorSetDocReader(InputStream stream)
public IGeneratorSet getGeneratorSet()
GeneratorSet
instance.getGeneratorSet
in interface IGeneratorSetSource
public void setInputStream(InputStream stream)
protected InputStream getInputStream()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
protected void pushElementHandler(GeneratorSetDocReader.ElementHandler handler)
protected GeneratorSetDocReader.ElementHandler popElementHandler()
protected GeneratorSetDocReader.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.