net.ontopia.topicmaps.xml
Class XTMTopicMapExporter

java.lang.Object
  extended by net.ontopia.topicmaps.xml.AbstractTopicMapExporter
      extended by net.ontopia.topicmaps.xml.XTMTopicMapExporter
Direct Known Subclasses:
XTMFragmentExporter

public class XTMTopicMapExporter
extends AbstractTopicMapExporter

INTERNAL: Exports topic maps to the XTM 1.0 interchange format.


Constructor Summary
XTMTopicMapExporter()
          Used to initialize the XTM Exporter
 
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.
 boolean getAddIds()
          INTERNAL: Returns true if configured to add IDs to all elements.
 boolean getExportSourceLocators()
          INTERNAL: Returns true if source locators should be exported.
 void setAddIds(boolean add_ids)
          INTERNAL: Tells the exporter whether or not to add IDs to all elements.
 void setExportSourceLocators(boolean export_srclocs)
          INTERNAL: Set the flag that says whether source locators should be exported or not.
 
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

XTMTopicMapExporter

public XTMTopicMapExporter()
Used to initialize the XTM Exporter

Method Detail

getExportSourceLocators

public boolean getExportSourceLocators()
INTERNAL: Returns true if source locators should be exported.


setExportSourceLocators

public void setExportSourceLocators(boolean export_srclocs)
INTERNAL: Set the flag that says whether source locators should be exported or not.


getAddIds

public boolean getAddIds()
INTERNAL: Returns true if configured to add IDs to all elements.

Since:
2.0

setAddIds

public void setAddIds(boolean add_ids)
INTERNAL: Tells the exporter whether or not to add IDs to all elements. (Default: true.)

Since:
2.0

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.