|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.torque.generator.configuration.source.SourceSaxHandler
public abstract class SourceSaxHandler
A base class for reading source definitions from the controller configuration file.
Constructor Summary | |
---|---|
SourceSaxHandler(ConfigurationProvider configurationProvider,
ProjectPaths projectPaths,
ConfigurationHandlers configurationHandlers)
Constructor. |
Method Summary | |
---|---|
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. |
ProjectPaths |
getProjectPaths()
Returns the paths of the surrounding project. |
SourceProcessConfiguration |
getSourceProcessConfiguration()
Returns the information how to post-process the sources after loading. |
abstract SourceProvider |
getSourceProvider()
Returns the information how to read the sources. |
boolean |
isFinished()
Returns whether the matching snippet was completely parsed. |
void |
startElement(String uri,
String localName,
String rawName,
Attributes attributes)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceSaxHandler(ConfigurationProvider configurationProvider, ProjectPaths projectPaths, ConfigurationHandlers configurationHandlers)
configurationProvider
- The access object for the configuration
files, not null.projectPaths
- The paths of the surrounding project, not null.configurationHandlers
- All known configuration handlers, not null.
NullPointerException
- if an argument is null.Method Detail |
---|
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 ProjectPaths getProjectPaths()
public boolean isFinished()
protected void finished()
public abstract SourceProvider getSourceProvider()
public SourceProcessConfiguration getSourceProcessConfiguration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |