net.ontopia.topicmaps.xml
Class XTM2TopicMapExporter

java.lang.Object
  extended by net.ontopia.topicmaps.xml.AbstractTopicMapExporter
      extended by net.ontopia.topicmaps.xml.XTM2TopicMapExporter

public class XTM2TopicMapExporter
extends AbstractTopicMapExporter

INTERNAL: Exports topic maps to the XTM 2.0 or 2.1 interchange format.


Constructor Summary
XTM2TopicMapExporter()
           
XTM2TopicMapExporter(boolean xtm21)
          EXPERIMENTAL: XTM 2.0 or XTM 2.1 output.
 
Method Summary
 void export(TopicMapIF tm)
          INTERNAL: Default export method.
 void export(TopicMapIF tm, org.xml.sax.DocumentHandler dh)
          INTERNAL: Traverses a Topic Map and emits SAX document handler events according to the Topic Map interchange format to the given document handler.
 void setExportItemIdentifiers(boolean export_itemids)
           
 
Methods inherited from class net.ontopia.topicmaps.xml.AbstractTopicMapExporter
getElementId, mayCollide, setFilter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XTM2TopicMapExporter

public XTM2TopicMapExporter()

XTM2TopicMapExporter

public XTM2TopicMapExporter(boolean xtm21)
EXPERIMENTAL: XTM 2.0 or XTM 2.1 output.

Parameters:
xtm21 - true to enable XTM 2.1, otherwise XTM 2.0 will be written.
Method Detail

setExportItemIdentifiers

public void setExportItemIdentifiers(boolean export_itemids)

export

public void export(TopicMapIF tm)
            throws org.xml.sax.SAXException,
                   java.io.IOException
INTERNAL: Default export method. An XML pretty printer is used and the output is written to stdout.

Throws:
org.xml.sax.SAXException
java.io.IOException

export

public void export(TopicMapIF tm,
                   org.xml.sax.DocumentHandler dh)
            throws org.xml.sax.SAXException
INTERNAL: Traverses a Topic Map and emits SAX document handler events according to the Topic Map interchange format to the given document handler.

Throws:
org.xml.sax.SAXException


Copyright © 2000-2010 Ontopia.