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:
- 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.
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 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 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
ModuleContentHandler
public ModuleContentHandler()
- Default constructor.
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.