Klasse ControlConfigurationSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.controller.ControlConfigurationSaxHandler
- Alle implementierten Schnittstellen:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Reads the controller configuration from the controller configuration file.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungControlConfigurationSaxHandler(ControlConfiguration controllerConfiguration, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Constructor. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcharacters(char[] ch, int start, int length) Receive notification of character data inside an element.voidendElement(String uri, String localName, String rawName) voiderror(SAXParseException exception) voidfatalError(SAXParseException exception) resolveEntity(String publicId, String systemId) EntityResolver implementation.voidstartElement(String uri, String localName, String qName, Attributes attributes) voidwarning(SAXParseException exception) Von Klasse geerbte Methoden org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDeclVon 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
-
ControlConfigurationSaxHandler
public ControlConfigurationSaxHandler(ControlConfiguration controllerConfiguration, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor, ConfigurationHandlers configurationHandlers) Constructor.- Parameter:
controllerConfiguration- the configuration object to fill, no null.configurationProvider- the Object for accessing the configuration, not null.unitDescriptor- The description of the generation unit, not null.configurationHandlers- the available configuration handlers, not null.- Löst aus:
NullPointerException- if an argument is null.
-
-
Methodendetails
-
startElement
public void startElement(String uri, String localName, String qName, 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
Receive notification of character data inside an element.- Angegeben von:
charactersin SchnittstelleContentHandler- Setzt außer Kraft:
charactersin KlasseDefaultHandler- Parameter:
ch- The characters.start- The start position in the character array.length- The number of characters to use from the character array.- Löst aus:
SAXException- Any SAX exception, possibly wrapping another exception.- Siehe auch:
-
resolveEntity
EntityResolver implementation. Called by the XML parser- Angegeben von:
resolveEntityin SchnittstelleEntityResolver- Setzt außer Kraft:
resolveEntityin KlasseDefaultHandler- Parameter:
publicId- The public identifier of the external entity.systemId- The system identifier of the external entity.- Gibt zurück:
- an InputSource for the entity, or null if the URI is not known.
- Löst aus:
SAXExceptionIOException- Siehe auch:
-
error
- Angegeben von:
errorin SchnittstelleErrorHandler- Setzt außer Kraft:
errorin KlasseDefaultHandler- Löst aus:
SAXParseException
-
fatalError
- Angegeben von:
fatalErrorin SchnittstelleErrorHandler- Setzt außer Kraft:
fatalErrorin KlasseDefaultHandler- Löst aus:
SAXParseException
-
warning
- Angegeben von:
warningin SchnittstelleErrorHandler- Setzt außer Kraft:
warningin KlasseDefaultHandler- Löst aus:
SAXParseException
-