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 booleancharacterCareprotected StringcurFuncNameprotected ListcurFuncParamsprotected StringcurFuncRetVarNameprotected MapfunctionsMap 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 voidcharacters(char[] ch, int start, int length)voidendElement(String uri, String lname, String qname)MapgetFunctions()Gets the functions as a map.voidstartElement(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:
startElementin interfaceContentHandler- Overrides:
startElementin classJSPContentHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classJSPContentHandler- Throws:
SAXException
-
endElement
public void endElement(String uri, String lname, String qname) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin 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.
-
-