Package net.ontopia.topicmaps.core
Interface TopicMapFragmentWriterIF
-
- All Known Implementing Classes:
RDFFragmentExporter,XTMTopicMapFragmentWriter
public interface TopicMapFragmentWriterIFPUBLIC: Implementations of this interface can export fragments of topic maps to some Topic Maps syntax given a collection of topics to include. Generally, the fragments will include all identifiers, types, names, occurrences, and associations of the topics.- Since:
- 5.1.3
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendTopicMap()PUBLIC: Ends the fragment.voidexportAll(Iterator<TopicIF> it)PUBLIC: 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.voidstartTopicMap()PUBLIC: Starts the fragment.
-
-
-
Method Detail
-
startTopicMap
void startTopicMap() throws IOExceptionPUBLIC: Starts the fragment.- Throws:
IOException
-
exportAll
void exportAll(Iterator<TopicIF> it) throws IOException
PUBLIC: Exports all the topics returned by the iterator, and wraps them with startTopicMap() and endTopicMap() calls.- Throws:
IOException
-
exportTopics
void exportTopics(Iterator<TopicIF> it) throws IOException
PUBLIC: Exports all the topics returned by the iterator.- Throws:
IOException
-
exportTopic
void exportTopic(TopicIF topic) throws IOException
PUBLIC: Exports the given topic.- Throws:
IOException
-
endTopicMap
void endTopicMap() throws IOExceptionPUBLIC: Ends the fragment.- Throws:
IOException
-
-