Package net.ontopia.topicmaps.utils.xfml
Class XFMLContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.ontopia.topicmaps.xml.AbstractTopicMapContentHandler
net.ontopia.topicmaps.utils.xfml.XFMLContentHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
INTERNAL: SAX2 content handler used for importing XFML documents.
The content handler builds a topic map object based on a SAX event
stream conforming to the XFML interchange syntax.
-
Field Summary
FieldsFields inherited from class net.ontopia.topicmaps.xml.AbstractTopicMapContentHandler
doc_address, ehandler, info, locator, parents, processed_documents_accumulated, processed_documents_current, processed_documents_from_parent, propagated_themes -
Constructor Summary
ConstructorsConstructorDescriptionXFMLContentHandler(TopicMapStoreFactoryIF stores, LocatorIF base_address) XFMLContentHandler(TopicMapStoreFactoryIF stores, LocatorIF base_address, Collection processed_documents) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddItemIdentifier(TopicIF topic, LocatorIF locator) protected voidaddSubjectIdentifier(TopicIF topic, LocatorIF locator) voidcharacters(char[] ch, int start, int length) protected LocatorIFcreateLocator(String address) protected LocatorIFcreateURILocator(String address) voidvoidendElement(String uri, String name, String qName) protected LocatorIFINTERNAL: Gets the topic map found after having parsed the input source.protected voidregisterSourceLocator(TMObjectIF tmobject, String id) protected voidregisterSourceLocator(TopicIF tmobject, String id) protected TopicIFresolveTopicRef(String address) voidvoidstartElement(String uri, String name, String qName, Attributes atts) Methods inherited from class net.ontopia.topicmaps.xml.AbstractTopicMapContentHandler
getDefaultErrorHandler, getLocationInfo, getPropagatedThemes, propagateThemes, register, setDocumentLocator, setPropagatedThemesMethods 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
-
stores
-
map_uri
-
-
Constructor Details
-
XFMLContentHandler
-
XFMLContentHandler
public XFMLContentHandler(TopicMapStoreFactoryIF stores, LocatorIF base_address, Collection processed_documents)
-
-
Method Details
-
getTopicMap
INTERNAL: Gets the topic map found after having parsed the input source. -
startDocument
public void startDocument()- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classDefaultHandler
-
endDocument
public void endDocument()- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler
-
startElement
public void startElement(String uri, String name, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
getBaseAddress
-
resolveTopicRef
- Throws:
SAXException
-
registerSourceLocator
-
registerSourceLocator
-
addItemIdentifier
-
addSubjectIdentifier
-
createLocator
-
createURILocator
-