Class ActionSaxHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.torque.generator.configuration.mergepoint.ActionSaxHandler
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
ApplyActionSaxHandler,OptionActionSaxHandler,OutputActionSaxHandler,SourceElementAttributeActionSaxHandler,TraverseAllActionSaxHandler
public abstract class ActionSaxHandler extends DefaultHandler
A SAX Handler which handles for the action element in mergepoints.
-
-
Constructor Summary
Constructors Constructor Description ActionSaxHandler(MergepointAction action, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergepointActiongetAction()Returns the action which was configured by this handler.protected ConfigurationProvidergetConfigurationProvider()Returns the configuration provider used by this handler.protected UnitDescriptorgetUnitDescriptor()Returns the description of the generation unit.voidstartElement(String uri, String localName, String rawName, Attributes attributes)-
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
-
-
-
-
Constructor Detail
-
ActionSaxHandler
public ActionSaxHandler(MergepointAction action, ConfigurationProvider configurationProvider, UnitDescriptor unitDescriptor)
Constructor.- Parameters:
action- paths of the underlying project, not null.configurationProvider- The access object for the configuration files, not null.unitDescriptor- The description of the generation unit, not null.- Throws:
NullPointerException- if an argument is null.
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
getAction
public MergepointAction getAction()
Returns the action which was configured by this handler.- Returns:
- the action configured by this handler, not null.
-
getConfigurationProvider
protected ConfigurationProvider getConfigurationProvider()
Returns the configuration provider used by this handler.- Returns:
- the configuration provider, not null.
-
getUnitDescriptor
protected UnitDescriptor getUnitDescriptor()
Returns the description of the generation unit.- Returns:
- the description of the generation unit, not null.
-
-