net.ontopia.topicmaps.xml
Class XTM2ContentHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.ontopia.topicmaps.xml.XTM2ContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class XTM2ContentHandler
extends org.xml.sax.helpers.DefaultHandler

INTERNAL: Reads both XTM 2.0 and XTM 2.1.


Constructor Summary
XTM2ContentHandler(TopicMapStoreFactoryIF store_factory, XMLReaderFactoryIF xrfactory, LocatorIF doc_address)
           
XTM2ContentHandler(TopicMapStoreFactoryIF store_factory, XMLReaderFactoryIF xrfactory, LocatorIF doc_address, java.util.Set read_documents)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement_(java.lang.String uri, java.lang.String name, java.lang.String qName)
           
 void endElement(java.lang.String uri, java.lang.String name, java.lang.String qname)
           
 java.util.Collection getTopicMaps()
           
 void startElement_(java.lang.String uri, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes atts)
           
 void startElement(java.lang.String uri, java.lang.String name, java.lang.String qname, org.xml.sax.Attributes atts)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XTM2ContentHandler

public XTM2ContentHandler(TopicMapStoreFactoryIF store_factory,
                          XMLReaderFactoryIF xrfactory,
                          LocatorIF doc_address)

XTM2ContentHandler

public XTM2ContentHandler(TopicMapStoreFactoryIF store_factory,
                          XMLReaderFactoryIF xrfactory,
                          LocatorIF doc_address,
                          java.util.Set read_documents)
Method Detail

startElement

public void startElement(java.lang.String uri,
                         java.lang.String name,
                         java.lang.String qname,
                         org.xml.sax.Attributes atts)
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

endElement

public void endElement(java.lang.String uri,
                       java.lang.String name,
                       java.lang.String qname)
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

startElement_

public void startElement_(java.lang.String uri,
                          java.lang.String name,
                          java.lang.String qname,
                          org.xml.sax.Attributes atts)
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

endElement_

public void endElement_(java.lang.String uri,
                        java.lang.String name,
                        java.lang.String qName)
                 throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getTopicMaps

public java.util.Collection getTopicMaps()


Copyright © 2000-2012 Ontopia.