Package net.ontopia.topicmaps.xml
Class AbstractTopicMapContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
net.ontopia.topicmaps.xml.AbstractTopicMapContentHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
XFMLContentHandler,XTMContentHandler
INTERNAL: Abstract SAX2 content handler used for reading various
kinds of topic map documents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LocatorIFdocument base uri, used for intra-document references.protected ErrorHandlerprotected Locatorprotected Collection<LocatorIF>protected Collection<LocatorIF>protected Collection<LocatorIF>protected Collection<TopicIF> -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTopicMapContentHandler(LocatorIF base_address) AbstractTopicMapContentHandler(LocatorIF base_address, Collection<LocatorIF> processed_documents_from_parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected ErrorHandlerprotected Stringprotected voidpropagateThemes(ScopedIF scoped) voidINTERNAL: Registers the content handler with the given XML reader object.voidsetDocumentLocator(Locator locator) voidsetPropagatedThemes(Collection<TopicIF> propagated_themes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startElement, 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
-
propagated_themes
-
processed_documents_current
-
processed_documents_from_parent
-
processed_documents_accumulated
-
parents
-
info
-
doc_address
document base uri, used for intra-document references. see RFC 2396, section 4.2 -
locator
-
ehandler
-
-
Constructor Details
-
AbstractTopicMapContentHandler
-
AbstractTopicMapContentHandler
public AbstractTopicMapContentHandler(LocatorIF base_address, Collection<LocatorIF> processed_documents_from_parent)
-
-
Method Details
-
getPropagatedThemes
-
setPropagatedThemes
-
propagateThemes
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler
-
register
INTERNAL: Registers the content handler with the given XML reader object. The content handler will register itself as the content handler of the XML reader. It will also attempt to set the SAX core features 'http://xml.org/sax/features/string-interning' to 'true' and 'http://xml.org/sax/features/external-parameter-entities' to 'false'. -
getLocationInfo
-
getDefaultErrorHandler
-