Klasse SourceSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.source.SourceSaxHandler
- Alle implementierten Schnittstellen:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Bekannte direkte Unterklassen:
FileSourceSaxHandler
,JdbcMetadataSourceSaxHandler
A base class for reading source definitions from the controller
configuration file.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSourceSaxHandler
(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
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.Returns the known configuration handlers.Returns the configurationProvider to access the configuration.Returns the information how to pre-process the sources before generating.abstract SourceProvider
Returns the information how to read the sources.Returns the description of the generation unit.boolean
Returns whether the matching snippet was completely parsed.void
startElement
(String uri, String localName, String rawName, Attributes attributes) Von Klasse geerbte Methoden org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden org.xml.sax.ContentHandler
declaration
-
Konstruktordetails
-
SourceSaxHandler
public SourceSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Constructor.- Parameter:
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.- Löst aus:
NullPointerException
- if an argument is null.
-
-
Methodendetails
-
startElement
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException - Angegeben von:
startElement
in SchnittstelleContentHandler
- Setzt außer Kraft:
startElement
in KlasseDefaultHandler
- Löst aus:
SAXException
-
endElement
- Angegeben von:
endElement
in SchnittstelleContentHandler
- Setzt außer Kraft:
endElement
in KlasseDefaultHandler
- Löst aus:
SAXException
-
characters
- Angegeben von:
characters
in SchnittstelleContentHandler
- Setzt außer Kraft:
characters
in KlasseDefaultHandler
- Löst aus:
SAXException
-
getConfigurationProvider
Returns the configurationProvider to access the configuration.- Gibt zurück:
- the configurationProvider to access the configuration, not null.
-
getConfigurationHandlers
Returns the known configuration handlers.- Gibt zurück:
- the configuration handlers, not null.
-
getUnitDescriptor
Returns the description of the generation unit.- Gibt zurück:
- the description of the generation unit, not null.
-
isFinished
public boolean isFinished()Returns whether the matching snippet was completely parsed.- Gibt zurück:
- true if the matching snippet was completely parsed, false otherwise.
-
finished
protected void finished()Marks that the matching snippet was completely parsed. -
getSourceProvider
Returns the information how to read the sources.- Gibt zurück:
- the source Provider, not null if the source snippet was processed.
-
getSourceProcessConfiguration
Returns the information how to pre-process the sources before generating.- Gibt zurück:
- the sourceProcessConfiguration, not null if the source snippet was processed.
-