Package 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
Fields Modifier and Type Field Description protected AttributesImpl
atts
protected static AttributesImpl
EMPTY_ATTR_LIST
protected static String
EMPTY_LOCALNAME
protected static String
EMPTY_NAMESPACE
protected boolean
export_itemids
-
Fields inherited from class net.ontopia.topicmaps.xml.AbstractTopicMapExporter
add_ids, filter
-
-
Constructor Summary
Constructors Constructor Description XTM2TopicMapExporter()
XTM2TopicMapExporter(boolean xtm21)
EXPERIMENTAL: XTM 2.0 or XTM 2.1 output.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(TopicMapIF tm)
INTERNAL: Default export method.void
export(TopicMapIF tm, ContentHandler 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
addId, filterCollection, filterOk, getElementId, isValidXMLId, mayCollide, setFilter
-
-
-
-
Field Detail
-
export_itemids
protected boolean export_itemids
-
atts
protected AttributesImpl atts
-
EMPTY_ATTR_LIST
protected static final AttributesImpl EMPTY_ATTR_LIST
-
EMPTY_NAMESPACE
protected static final String EMPTY_NAMESPACE
- See Also:
- Constant Field Values
-
EMPTY_LOCALNAME
protected static final String EMPTY_LOCALNAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
setExportItemIdentifiers
public void setExportItemIdentifiers(boolean export_itemids)
-
export
public void export(TopicMapIF tm) throws SAXException, IOException
INTERNAL: Default export method. An XML pretty printer is used and the output is written to stdout.- Throws:
SAXException
IOException
-
export
public void export(TopicMapIF tm, ContentHandler dh) throws 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:
SAXException
-
-