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 TypMethodeBeschreibungvoid
characters
(char[] ch, int start, int length) Receive notification of character data inside an element.void
endElement
(String uri, String localName, String rawName) void
error
(SAXParseException exception) void
fatalError
(SAXParseException exception) resolveEntity
(String publicId, String systemId) EntityResolver implementation.void
startElement
(String uri, String localName, String qName, Attributes attributes) void
warning
(SAXParseException exception) Von Klasse geerbte Methoden org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
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
-
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:
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
Receive notification of character data inside an element.- Angegeben von:
characters
in SchnittstelleContentHandler
- Setzt außer Kraft:
characters
in 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:
resolveEntity
in SchnittstelleEntityResolver
- Setzt außer Kraft:
resolveEntity
in 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:
SAXException
IOException
- Siehe auch:
-
error
- Angegeben von:
error
in SchnittstelleErrorHandler
- Setzt außer Kraft:
error
in KlasseDefaultHandler
- Löst aus:
SAXParseException
-
fatalError
- Angegeben von:
fatalError
in SchnittstelleErrorHandler
- Setzt außer Kraft:
fatalError
in KlasseDefaultHandler
- Löst aus:
SAXParseException
-
warning
- Angegeben von:
warning
in SchnittstelleErrorHandler
- Setzt außer Kraft:
warning
in KlasseDefaultHandler
- Löst aus:
SAXParseException
-