Package net.ontopia.topicmaps.xml
Class XTM2TopicMapExporter
java.lang.Object
net.ontopia.topicmaps.xml.AbstractTopicMapExporter
net.ontopia.topicmaps.xml.XTM2TopicMapExporter
INTERNAL: Exports topic maps to the XTM 2.0 or 2.1 interchange format.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttributesImplprotected static final AttributesImplprotected static final Stringprotected static final Stringprotected booleanFields inherited from class net.ontopia.topicmaps.xml.AbstractTopicMapExporter
add_ids, filter -
Constructor Summary
ConstructorsConstructorDescriptionXTM2TopicMapExporter(boolean xtm21) EXPERIMENTAL: XTM 2.0 or XTM 2.1 output. -
Method Summary
Modifier and TypeMethodDescriptionvoidexport(TopicMapIF tm) INTERNAL: Default export method.voidexport(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.voidsetExportItemIdentifiers(boolean export_itemids) Methods inherited from class net.ontopia.topicmaps.xml.AbstractTopicMapExporter
addId, filterCollection, filterOk, getElementId, isValidXMLId, mayCollide, setFilter
-
Field Details
-
export_itemids
protected boolean export_itemids -
atts
-
EMPTY_ATTR_LIST
-
EMPTY_NAMESPACE
- See Also:
-
EMPTY_LOCALNAME
- See Also:
-
-
Constructor Details
-
XTM2TopicMapExporter
public XTM2TopicMapExporter() -
XTM2TopicMapExporter
public XTM2TopicMapExporter(boolean xtm21) EXPERIMENTAL: XTM 2.0 or XTM 2.1 output.- Parameters:
xtm21-trueto enable XTM 2.1, otherwise XTM 2.0 will be written.
-
-
Method Details
-
setExportItemIdentifiers
public void setExportItemIdentifiers(boolean export_itemids) -
export
INTERNAL: Default export method. An XML pretty printer is used and the output is written to stdout.- Throws:
SAXExceptionIOException
-
export
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
-