public abstract class SourceSaxHandler extends DefaultHandler
Constructor and Description |
---|
SourceSaxHandler(ConfigurationProvider configurationProvider,
UnitDescriptor unitDescriptor,
ConfigurationHandlers configurationHandlers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String rawName) |
protected void |
finished()
Marks that the matching snippet was completely parsed.
|
ConfigurationHandlers |
getConfigurationHandlers()
Returns the known configuration handlers.
|
ConfigurationProvider |
getConfigurationProvider()
Returns the configurationProvider to access the configuration.
|
SourceProcessConfiguration |
getSourceProcessConfiguration()
Returns the information how to pre-process the sources before generating.
|
abstract SourceProvider |
getSourceProvider()
Returns the information how to read the sources.
|
UnitDescriptor |
getUnitDescriptor()
Returns the description of the generation unit.
|
boolean |
isFinished()
Returns whether the matching snippet was completely parsed.
|
void |
startElement(String uri,
String localName,
String rawName,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public SourceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers)
configurationProvider
- The access object for the configuration
files, not null.unitDescriptor
- The description of the generation unit, not null.configurationHandlers
- All known configuration handlers, not null.NullPointerException
- if an argument is null.public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public ConfigurationProvider getConfigurationProvider()
public ConfigurationHandlers getConfigurationHandlers()
public UnitDescriptor getUnitDescriptor()
public boolean isFinished()
protected void finished()
public abstract SourceProvider getSourceProvider()
public SourceProcessConfiguration getSourceProcessConfiguration()
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.