|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.DefaultHandler org.apache.torque.generator.configuration.controller.ControlConfigurationSaxHandler
public class ControlConfigurationSaxHandler
Reads the controller configuration from the controller configuration file.
Constructor Summary | |
---|---|
ControlConfigurationSaxHandler(ControlConfiguration controllerConfiguration,
ConfigurationProvider configurationProvider,
ProjectPaths projectPaths,
ConfigurationHandlers configurationHandlers)
Constructor. |
Method Summary | |
---|---|
void |
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)
|
InputSource |
resolveEntity(String publicId,
String systemId)
EntityResolver implementation. |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
void |
warning(SAXParseException exception)
|
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ControlConfigurationSaxHandler(ControlConfiguration controllerConfiguration, ConfigurationProvider configurationProvider, ProjectPaths projectPaths, ConfigurationHandlers configurationHandlers)
controllerConfiguration
- the configuration object to fill, no null.configurationProvider
- the Object for accessing the configuration,
not null.projectPaths
- the paths in the configuration, not null.configurationHandlers
- the available configuration handlers,
not null.
NullPointerException
- if an argument is null.Method Detail |
---|
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
ch
- The characters.start
- The start position in the character array.length
- The number of characters to use from the
character array.
SAXException
- Any SAX exception, possibly
wrapping another exception.ContentHandler.characters(char[], int, int)
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
resolveEntity
in class DefaultHandler
publicId
- The public identifier of the external entity.systemId
- The system identifier of the external entity.
SAXException
IOException
ConfigurationEntityResolver.resolveEntity(String, String)
public void error(SAXParseException exception) throws SAXParseException
error
in interface ErrorHandler
error
in class DefaultHandler
SAXParseException
public void fatalError(SAXParseException exception) throws SAXParseException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXParseException
public void warning(SAXParseException exception) throws SAXParseException
warning
in interface ErrorHandler
warning
in class DefaultHandler
SAXParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |