net.ontopia.utils.ontojsp
Class JSPContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.ontopia.utils.ontojsp.JSPContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.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.


Field Summary
protected  JSPTreeNodeIF current
           
protected  org.xml.sax.ErrorHandler ehandler
           
protected  org.xml.sax.Locator locator
           
protected  java.util.Stack parents
           
protected  JSPTreeNodeIF root
           
protected  JSPTagFactoryIF tagFactory
           
 
Constructor Summary
JSPContentHandler()
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(java.lang.String uri, java.lang.String lname, java.lang.String qname)
           
protected  org.xml.sax.ErrorHandler getDefaultErrorHandler()
           
 JSPTreeNodeIF getRootNode()
          Returns the root node of the just read-in and built JSPTree.
 void register(org.xml.sax.XMLReader parser)
           
 void setDocumentLocator(org.xml.sax.Locator locator)
           
 void startDocument()
           
 void startElement(java.lang.String uri, java.lang.String lname, java.lang.String qname, org.xml.sax.Attributes atts)
           
 
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
 

Field Detail

root

protected JSPTreeNodeIF root

current

protected JSPTreeNodeIF current

tagFactory

protected JSPTagFactoryIF tagFactory

parents

protected java.util.Stack parents

ehandler

protected org.xml.sax.ErrorHandler ehandler

locator

protected org.xml.sax.Locator locator
Constructor Detail

JSPContentHandler

public JSPContentHandler()
Method Detail

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler
Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler

register

public void register(org.xml.sax.XMLReader parser)

getDefaultErrorHandler

protected org.xml.sax.ErrorHandler getDefaultErrorHandler()

startDocument

public void startDocument()
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler

endDocument

public void endDocument()
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(java.lang.String uri,
                         java.lang.String lname,
                         java.lang.String qname,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String uri,
                       java.lang.String lname,
                       java.lang.String qname)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException

getRootNode

public JSPTreeNodeIF getRootNode()
Returns the root node of the just read-in and built JSPTree.



Copyright © 2000-2012 Ontopia.