Class OutletReferenceSaxHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.torque.generator.configuration.controller.OutletReferenceSaxHandler
-
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class OutletReferenceSaxHandler extends DefaultHandler
Reads a Outlet reference file from the controller configuration file.
-
-
Constructor Summary
Constructors Constructor Description OutletReferenceSaxHandler()
-
Method Summary
Modifier and Type Method Description void
endElement(String uri, String localName, String rawName)
OutletReference
getOutletReference()
Returns the outlet reference which was filled by this handler.boolean
isFinished()
Returns whether the handler has already parsed the end of the snippet for which it is responsible.void
startElement(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, warning
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String rawName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String localName, String rawName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
getOutletReference
public OutletReference 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.
-
-