Package 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
characterCare
protected String
curFuncName
protected List
curFuncParams
protected String
curFuncRetVarName
protected 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, useTagPooling
-
-
Constructor Summary
Constructors Constructor Description ModuleContentHandler()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
void
endElement(String uri, String lname, String qname)
Map
getFunctions()
Gets the functions as a map.void
startElement(String uri, String lname, String qname, 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
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String lname, String qname, Attributes atts) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classJSPContentHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classJSPContentHandler
- Throws:
SAXException
-
endElement
public void endElement(String uri, String lname, String qname) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classJSPContentHandler
- Throws:
SAXException
-
getFunctions
public Map getFunctions()
Gets the functions as a map.- Returns:
- java.util.Map - containing as key: function name, value: FunctionIF object.
-
-