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
 void endTopicMap()
          PUBLIC: Ends the fragment.
 void exportAll(java.util.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(java.util.Iterator<TopicIF> it)
          PUBLIC: Exports all the topics returned by the iterator.
 void startTopicMap()
          PUBLIC: Starts the fragment.
 

Method Detail

startTopicMap

void startTopicMap()
                   throws java.io.IOException
PUBLIC: Starts the fragment.

Throws:
java.io.IOException

exportAll

void exportAll(java.util.Iterator<TopicIF> it)
               throws java.io.IOException
PUBLIC: Exports all the topics returned by the iterator, and wraps them with startTopicMap() and endTopicMap() calls.

Throws:
java.io.IOException

exportTopics

void exportTopics(java.util.Iterator<TopicIF> it)
                  throws java.io.IOException
PUBLIC: Exports all the topics returned by the iterator.

Throws:
java.io.IOException

exportTopic

void exportTopic(TopicIF topic)
                 throws java.io.IOException
PUBLIC: Exports the given topic.

Throws:
java.io.IOException

endTopicMap

void endTopicMap()
                 throws java.io.IOException
PUBLIC: Ends the fragment.

Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.