net.ontopia.topicmaps.xml
Class AbstractTopicMapContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.ontopia.topicmaps.xml.AbstractTopicMapContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
Direct Known Subclasses:
XFMLContentHandler, XTMContentHandler

public abstract class AbstractTopicMapContentHandler
extends org.xml.sax.helpers.DefaultHandler

INTERNAL: Abstract SAX2 content handler used for reading various kinds of topic map documents.


Field Summary
protected  LocatorIF doc_address
          document base uri, used for intra-document references.
protected  org.xml.sax.ErrorHandler ehandler
           
protected  java.util.Map info
           
protected  org.xml.sax.Locator locator
           
protected  java.util.Stack parents
           
protected  java.util.Collection processed_documents_accumulated
           
protected  java.util.Collection processed_documents_current
           
protected  java.util.Collection processed_documents_from_parent
           
protected  java.util.Collection propagated_themes
           
 
Constructor Summary
AbstractTopicMapContentHandler(LocatorIF base_address)
           
AbstractTopicMapContentHandler(LocatorIF base_address, java.util.Collection processed_documents_from_parent)
           
 
Method Summary
protected  org.xml.sax.ErrorHandler getDefaultErrorHandler()
           
protected  java.lang.String getLocationInfo()
           
 java.util.Collection getPropagatedThemes()
           
protected  void propagateThemes(ScopedIF scoped)
           
 void register(org.xml.sax.XMLReader parser)
          INTERNAL: Registers the content handler with the given XML reader object.
 void setDocumentLocator(org.xml.sax.Locator locator)
           
 void setPropagatedThemes(java.util.Collection 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propagated_themes

protected java.util.Collection propagated_themes

processed_documents_current

protected java.util.Collection processed_documents_current

processed_documents_from_parent

protected java.util.Collection processed_documents_from_parent

processed_documents_accumulated

protected java.util.Collection processed_documents_accumulated

parents

protected java.util.Stack parents

info

protected java.util.Map info

doc_address

protected LocatorIF doc_address
document base uri, used for intra-document references. see RFC 2396, section 4.2


locator

protected org.xml.sax.Locator locator

ehandler

protected org.xml.sax.ErrorHandler ehandler
Constructor Detail

AbstractTopicMapContentHandler

public AbstractTopicMapContentHandler(LocatorIF base_address)

AbstractTopicMapContentHandler

public AbstractTopicMapContentHandler(LocatorIF base_address,
                                      java.util.Collection processed_documents_from_parent)
Method Detail

getPropagatedThemes

public java.util.Collection getPropagatedThemes()

setPropagatedThemes

public void setPropagatedThemes(java.util.Collection propagated_themes)

propagateThemes

protected void propagateThemes(ScopedIF scoped)

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler
Overrides:
setDocumentLocator in class org.xml.sax.helpers.DefaultHandler

register

public void register(org.xml.sax.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 java.lang.String getLocationInfo()

getDefaultErrorHandler

protected org.xml.sax.ErrorHandler getDefaultErrorHandler()


Copyright © 2000-2012 Ontopia.