Class OutletReferenceSaxHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.torque.generator.configuration.controller.OutletReferenceSaxHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Reads a Outlet reference file from the controller
configuration file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidendElement(String uri, String localName, String rawName) Returns the outlet reference which was filled by this handler.booleanReturns whether the handler has already parsed the end of the snippet for which it is responsible.voidstartElement(String uri, String localName, String rawName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
OutletReferenceSaxHandler
public OutletReferenceSaxHandler()
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
getOutletReference
Returns the outlet reference which was filled by this handler.- Returns:
- the outlet reference which was filled by this handler, not null.
-
isFinished
public boolean isFinished()Returns whether the handler has already parsed the end of the snippet for which it is responsible.- Returns:
- true if the end of the snippet is reached, false otherwise.
-