org.apache.torque.generator.configuration.mergepoint
Class OptionActionSaxHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.torque.generator.configuration.mergepoint.ActionSaxHandler
          extended by org.apache.torque.generator.configuration.mergepoint.OptionActionSaxHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class OptionActionSaxHandler
extends ActionSaxHandler

A SAX handler which reads the configuration for a OptionAction and creates and configures the Action according to the values in the configuration XML.


Constructor Summary
OptionActionSaxHandler(String uri, String localName, String qName, Attributes attributes, ConfigurationProvider configurationProvider, ProjectPaths projectPaths)
          Creates a OptionActionSaxHandler for reading the configuration of a OptionAction.
 
Method Summary
 void startElement(String uri, String localName, String rawName, Attributes attributes)
          
 
Methods inherited from class org.apache.torque.generator.configuration.mergepoint.ActionSaxHandler
getAction, getConfigurationProvider, getProjectPaths
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OptionActionSaxHandler

public OptionActionSaxHandler(String uri,
                              String localName,
                              String qName,
                              Attributes attributes,
                              ConfigurationProvider configurationProvider,
                              ProjectPaths projectPaths)
                       throws SAXException
Creates a OptionActionSaxHandler for reading the configuration of a OptionAction.

Parameters:
uri - - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
localName - - The local name (without prefix), or the empty string if Namespace processing is not being performed.
qName - - The qualified name (with prefix), or the empty string if qualified names are not available.
attributes - - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
configurationProvider - The access object for the configuration files, not null.
projectPaths - The paths of the surrounding project, not null.
Throws:
NullPointerException - if an argument is null.
SAXException - if the element cannot be processed correctly.
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String rawName,
                         Attributes attributes)
                  throws SAXException

Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class ActionSaxHandler
Throws:
SAXException


Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.