Klasse ConfigurableClassSaxHandler<T>
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.source.ConfigurableClassSaxHandler<T>
- Typparameter:
T- the class to create.
- Alle implementierten Schnittstellen:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Reads a configurable class from the controller configuration file.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungConfigurableClassSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, String tagNameToProcess) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String localName, String rawName) Returns the configured class.booleanReturns the configuration filled with the contents of the parsed snippet.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
-
ConfigurableClassSaxHandler
public ConfigurableClassSaxHandler(ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, String tagNameToProcess) Constructor.- Parameter:
configurationProvider- The access object for the configuration files, not null.unitDescriptor- The description of the generation unit, not null.tagNameToProcess- the name of the XML Tag to process, 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
-
getConfiguredClass
Returns the configured class.- Gibt zurück:
- the configured class, not null if a matching snippet was processed.
-
isFinished
public boolean isFinished()Returns the configuration filled with the contents of the parsed snippet.- Gibt zurück:
- the configuration which was filled, not null if a matching snippet was processed.
-