Package net.ontopia.topicmaps.core
Interface TopicMapFragmentWriterIF
-
- All Known Implementing Classes:
RDFFragmentExporter
,XTMTopicMapFragmentWriter
public interface TopicMapFragmentWriterIF
PUBLIC: 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 void
endTopicMap()
PUBLIC: Ends the fragment.void
exportAll(Iterator<TopicIF> it)
PUBLIC: Exports all the topics returned by the iterator, and wraps them with startTopicMap() and endTopicMap() calls.void
exportTopic(TopicIF topic)
PUBLIC: Exports the given topic.void
exportTopics(Iterator<TopicIF> it)
PUBLIC: Exports all the topics returned by the iterator.void
startTopicMap()
PUBLIC: Starts the fragment.
-
-
-
Method Detail
-
startTopicMap
void startTopicMap() throws IOException
PUBLIC: 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 IOException
PUBLIC: Ends the fragment.- Throws:
IOException
-
-