Class XmlOptionsSaxHandlerFactory
- java.lang.Object
-
- org.apache.torque.generator.configuration.option.XmlOptionsSaxHandlerFactory
-
- All Implemented Interfaces:
OptionsSaxHandlerFactory
public class XmlOptionsSaxHandlerFactory extends Object implements OptionsSaxHandlerFactory
A Factory which creates a SAX handler for XML Options.
-
-
Constructor Summary
Constructors Constructor Description XmlOptionsSaxHandlerFactory()
-
Method Summary
Modifier and Type Method Description FileOptionsSaxHandler
getOptionsSaxHandler()
Returns a FileOptionsSaxHandler for reading the configuration of XML options.String
getType()
Returns the options type which can be handled by the OptionsSaxHandlers created by this factory.
-
-
-
Method Detail
-
getType
public String getType()
Returns the options type which can be handled by the OptionsSaxHandlers created by this factory.- Specified by:
getType
in interfaceOptionsSaxHandlerFactory
- Returns:
- "xmlOptions".
-
getOptionsSaxHandler
public final FileOptionsSaxHandler getOptionsSaxHandler() throws SAXException
Returns a FileOptionsSaxHandler for reading the configuration of XML options.- Specified by:
getOptionsSaxHandler
in interfaceOptionsSaxHandlerFactory
- Returns:
- a new FileOptionsSaxHandler.
- Throws:
SAXException
- if the SAX Handler for the options can not be created from the given XML element.
-
-