net.ontopia.topicmaps.xml
Class XTM2TopicMapExporter
java.lang.Object
net.ontopia.topicmaps.xml.AbstractTopicMapExporter
net.ontopia.topicmaps.xml.XTM2TopicMapExporter
public class XTM2TopicMapExporter
- extends AbstractTopicMapExporter
INTERNAL: Exports topic maps to the XTM 2.0 or 2.1 interchange format.
Field Summary |
protected org.xml.sax.helpers.AttributeListImpl |
atts
|
protected static org.xml.sax.helpers.AttributeListImpl |
EMPTY_ATTR_LIST
|
protected boolean |
export_itemids
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
export_itemids
protected boolean export_itemids
atts
protected org.xml.sax.helpers.AttributeListImpl atts
EMPTY_ATTR_LIST
protected static final org.xml.sax.helpers.AttributeListImpl EMPTY_ATTR_LIST
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.
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-2012 Ontopia.