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
public abstract class AbstractTopicMapContentHandler extends DefaultHandler
INTERNAL: Abstract SAX2 content handler used for reading various kinds of topic map documents.
-
-
Field Summary
Fields Modifier and Type Field Description protected LocatorIFdoc_addressdocument base uri, used for intra-document references.protected ErrorHandlerehandlerprotected Map<String,Object>infoprotected Locatorlocatorprotected Stack<String>parentsprotected Collection<LocatorIF>processed_documents_accumulatedprotected Collection<LocatorIF>processed_documents_currentprotected Collection<LocatorIF>processed_documents_from_parentprotected Collection<TopicIF>propagated_themes
-
Constructor Summary
Constructors Constructor Description AbstractTopicMapContentHandler(LocatorIF base_address)AbstractTopicMapContentHandler(LocatorIF base_address, Collection<LocatorIF> processed_documents_from_parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ErrorHandlergetDefaultErrorHandler()protected StringgetLocationInfo()Collection<TopicIF>getPropagatedThemes()protected voidpropagateThemes(ScopedIF scoped)voidregister(XMLReader parser)INTERNAL: 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, warning
-
-
-
-
Field Detail
-
propagated_themes
protected Collection<TopicIF> propagated_themes
-
processed_documents_current
protected Collection<LocatorIF> processed_documents_current
-
processed_documents_from_parent
protected Collection<LocatorIF> processed_documents_from_parent
-
processed_documents_accumulated
protected Collection<LocatorIF> processed_documents_accumulated
-
doc_address
protected LocatorIF doc_address
document base uri, used for intra-document references. see RFC 2396, section 4.2
-
locator
protected Locator locator
-
ehandler
protected ErrorHandler ehandler
-
-
Constructor Detail
-
AbstractTopicMapContentHandler
public AbstractTopicMapContentHandler(LocatorIF base_address)
-
AbstractTopicMapContentHandler
public AbstractTopicMapContentHandler(LocatorIF base_address, Collection<LocatorIF> processed_documents_from_parent)
-
-
Method Detail
-
getPropagatedThemes
public Collection<TopicIF> getPropagatedThemes()
-
setPropagatedThemes
public void setPropagatedThemes(Collection<TopicIF> propagated_themes)
-
propagateThemes
protected void propagateThemes(ScopedIF scoped)
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler- Overrides:
setDocumentLocatorin classDefaultHandler
-
register
public void register(XMLReader parser)
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
protected String getLocationInfo()
-
getDefaultErrorHandler
protected ErrorHandler getDefaultErrorHandler()
-
-