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
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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected Listprotected Stringprotected MapMap with function names as keys and FunctionIF objects as valuesFields inherited from class net.ontopia.utils.ontojsp.JSPContentHandler
current, ehandler, locator, parents, root, tagFactory, useTagPooling -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) voidendElement(String uri, String lname, String qname) 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, startDocumentMethods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
functions
Map with function names as keys and FunctionIF objects as values -
curFuncName
-
curFuncParams
-
curFuncRetVarName
-
characterCare
protected boolean characterCare
-
-
Constructor Details
-
ModuleContentHandler
public ModuleContentHandler()Default constructor.
-
-
Method Details
-
startElement
public void startElement(String uri, String lname, String qname, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classJSPContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classJSPContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classJSPContentHandler- Throws:
SAXException
-
getFunctions
Gets the functions as a map.- Returns:
- java.util.Map - containing as key: function name, value: FunctionIF object.
-