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 TypMethodeBeschreibungvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String rawName) protected voidfinished()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 SourceProviderReturns the information how to read the sources.Returns the description of the generation unit.booleanReturns whether the matching snippet was completely parsed.voidstartElement(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, warningVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon 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:
startElementin SchnittstelleContentHandler- Setzt außer Kraft:
startElementin KlasseDefaultHandler- Löst aus:
SAXException
-
endElement
- Angegeben von:
endElementin SchnittstelleContentHandler- Setzt außer Kraft:
endElementin KlasseDefaultHandler- Löst aus:
SAXException
-
characters
- Angegeben von:
charactersin SchnittstelleContentHandler- Setzt außer Kraft:
charactersin 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.
-