Package net.ontopia.topicmaps.xml
Class XTMTopicMapFragmentWriter
java.lang.Object
net.ontopia.topicmaps.xml.XTMTopicMapFragmentWriter
- All Implemented Interfaces:
TopicMapFragmentWriterIF
PUBLIC: A fragment writer for XTM 1.0.
- Since:
- 5.1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPUBLIC: Ends the fragment.voidPUBLIC: Exports all the topics returned by the iterator, and wraps them with startTopicMap() and endTopicMap() calls.voidexportTopic(TopicIF topic) PUBLIC: Exports the given topic.voidexportTopics(Iterator<TopicIF> it) PUBLIC: Exports all the topics returned by the iterator.booleanPUBLIC: Whether or not internal references of the form '#id' will be exported.voidsetUseLocalIds(boolean use_local_ids) PUBLIC: Controls whether or not internal references of the form '#id' will be exported.voidPUBLIC: Starts the fragment.
-
Constructor Details
-
XTMTopicMapFragmentWriter
- Throws:
IOException
-
XTMTopicMapFragmentWriter
- Throws:
IOException
-
-
Method Details
-
startTopicMap
PUBLIC: Starts the fragment.- Specified by:
startTopicMapin interfaceTopicMapFragmentWriterIF- Throws:
IOException
-
exportAll
PUBLIC: Exports all the topics returned by the iterator, and wraps them with startTopicMap() and endTopicMap() calls.- Specified by:
exportAllin interfaceTopicMapFragmentWriterIF- Throws:
IOException
-
exportTopics
PUBLIC: Exports all the topics returned by the iterator.- Specified by:
exportTopicsin interfaceTopicMapFragmentWriterIF- Throws:
IOException
-
exportTopic
PUBLIC: Exports the given topic.- Specified by:
exportTopicin interfaceTopicMapFragmentWriterIF- Throws:
IOException
-
endTopicMap
PUBLIC: Ends the fragment.- Specified by:
endTopicMapin interfaceTopicMapFragmentWriterIF- Throws:
IOException
-
setUseLocalIds
public void setUseLocalIds(boolean use_local_ids) PUBLIC: Controls whether or not internal references of the form '#id' will be exported.- Since:
- 5.2.0
-
getUseLocalIds
public boolean getUseLocalIds()PUBLIC: Whether or not internal references of the form '#id' will be exported.- Since:
- 5.2.0
-