net.ontopia.topicmaps.nav2.utils
Class ModuleContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.ontopia.utils.ontojsp.JSPContentHandler
net.ontopia.topicmaps.nav2.utils.ModuleContentHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, 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.
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 |
functions
protected Map functions
- Map with function names as keys and FunctionIF objects as values
curFuncName
protected String curFuncName
curFuncParams
protected List curFuncParams
curFuncRetVarName
protected String curFuncRetVarName
characterCare
protected boolean characterCare
ModuleContentHandler
public ModuleContentHandler()
- Default constructor.
startElement
public void startElement(String uri,
String lname,
String qname,
Attributes atts)
throws SAXException
- Specified by:
startElement
in interface ContentHandler
- Overrides:
startElement
in class JSPContentHandler
- Throws:
SAXException
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class JSPContentHandler
- Throws:
SAXException
endElement
public void endElement(String uri,
String lname,
String qname)
throws SAXException
- Specified by:
endElement
in interface ContentHandler
- Overrides:
endElement
in class JSPContentHandler
- Throws:
SAXException
getFunctions
public Map getFunctions()
- Gets the functions as a map.
- Returns:
- java.util.Map - containing as key: function name, value:
FunctionIF object.
Copyright © 2000-2012 Ontopia.