Package net.ontopia.utils.ontojsp
Class JSPContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.ontopia.utils.ontojsp.JSPContentHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
ModuleContentHandler
INTERNAL: A Content Handler that reads a JSP file and builds a
JSP tree of JSPTreeNodeIF objects from a XML instance.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JSPTreeNodeIFprotected ErrorHandlerprotected Locatorprotected JSPTreeNodeIFprotected JSPTagFactoryIFprotected final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidvoidendElement(String uri, String lname, String qname) protected ErrorHandlerReturns the root node of the just read-in and built JSPTree.voidvoidsetDocumentLocator(Locator locator) voidvoidstartElement(String uri, String lname, String qname, Attributes atts) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, 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
-
Field Details
-
root
-
current
-
tagFactory
-
parents
-
useTagPooling
protected final boolean useTagPooling -
ehandler
-
locator
-
-
Constructor Details
-
JSPContentHandler
public JSPContentHandler() -
JSPContentHandler
public JSPContentHandler(boolean useTagPooling)
-
-
Method Details
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler
-
register
-
getDefaultErrorHandler
-
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler
-
startElement
public void startElement(String uri, String lname, String qname, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
getRootNode
Returns the root node of the just read-in and built JSPTree.
-