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
public class JSPContentHandler
- extends org.xml.sax.helpers.DefaultHandler
INTERNAL: A Content Handler that reads a JSP file and builds a
JSP tree of JSPTreeNodeIF objects from a XML instance.
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
protected JSPTreeNodeIF root
current
protected JSPTreeNodeIF current
tagFactory
protected JSPTagFactoryIF tagFactory
parents
protected Stack parents
ehandler
protected ErrorHandler ehandler
locator
protected Locator locator
JSPContentHandler
public JSPContentHandler()
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator in interface ContentHandler- Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler
register
public void register(XMLReader parser)
getDefaultErrorHandler
protected ErrorHandler getDefaultErrorHandler()
startDocument
public void startDocument()
- Specified by:
startDocument in interface ContentHandler- Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
endDocument
public void endDocument()
- Specified by:
endDocument in interface ContentHandler- Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
startElement
public void startElement(String uri,
String lname,
String qname,
Attributes atts)
throws SAXException
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters in interface ContentHandler- Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String lname,
String qname)
throws SAXException
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
getRootNode
public JSPTreeNodeIF getRootNode()
- Returns the root node of the just read-in and built JSPTree.
Copyright © 2000-2012 Ontopia.