net.ontopia.topicmaps.nav2.utils
Class ModuleContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.ontopia.utils.ontojsp.JSPContentHandler
          extended by net.ontopia.topicmaps.nav2.utils.ModuleContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class ModuleContentHandler
extends JSPContentHandler

INTERNAL: A content handler for module specification files (root element "module" which consists of an arbitrary number of "function" elements. For each function a JSPTree will be built containing the element structure of navigator tags.


Field Summary
protected  boolean characterCare
           
protected  java.lang.String curFuncName
           
protected  java.util.List curFuncParams
           
protected  java.lang.String curFuncRetVarName
           
protected  java.util.Map functions
          Map with function names as keys and FunctionIF objects as values
 
Fields inherited from class net.ontopia.utils.ontojsp.JSPContentHandler
current, ehandler, locator, parents, root, tagFactory
 
Constructor Summary
ModuleContentHandler()
          Default constructor.
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(java.lang.String uri, java.lang.String lname, java.lang.String qname)
           
 java.util.Map getFunctions()
          Gets the functions as a map.
 void startElement(java.lang.String uri, java.lang.String lname, java.lang.String qname, org.xml.sax.Attributes atts)
           
 
Methods inherited from class net.ontopia.utils.ontojsp.JSPContentHandler
endDocument, getDefaultErrorHandler, getRootNode, register, setDocumentLocator, startDocument
 
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

functions

protected java.util.Map functions
Map with function names as keys and FunctionIF objects as values


curFuncName

protected java.lang.String curFuncName

curFuncParams

protected java.util.List curFuncParams

curFuncRetVarName

protected java.lang.String curFuncRetVarName

characterCare

protected boolean characterCare
Constructor Detail

ModuleContentHandler

public ModuleContentHandler()
Default constructor.

Method Detail

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 JSPContentHandler
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 JSPContentHandler
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 JSPContentHandler
Throws:
org.xml.sax.SAXException

getFunctions

public java.util.Map getFunctions()
Gets the functions as a map.

Returns:
java.util.Map - containing as key: function name, value: FunctionIF object.


Copyright © 2000-2012 Ontopia.