Class TopicMapIteratorGenerator
- java.lang.Object
-
- net.ontopia.infoset.fulltext.topicmaps.TopicMapIteratorGenerator
-
public class TopicMapIteratorGenerator extends Object
INTERNAL: A topic map event generator that iterates the objects in a topic map and produces documents for an indexer.Basenames, variant names, and occurrences are indexed.
Note: the properties topicMap, indexer and documentGenerator must be set before the event generation can be started.
-
-
Field Summary
Fields Modifier and Type Field Description protected TopicMapDocumentGeneratorIFdocgenprotected IndexerIFindexerprotected TopicMapIFtopicmap
-
Constructor Summary
Constructors Constructor Description TopicMapIteratorGenerator()TopicMapIteratorGenerator(TopicMapIF topicmap, IndexerIF indexer, TopicMapDocumentGeneratorIF docgen)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgenerate()INTERNAL: Iterates over the objects in a topic map and generates indexable documents for objects in the topic map.TopicMapDocumentGeneratorIFgetDocumentGenerator()INTERNAL: Gets the topic map document generator that is to be used.IndexerIFgetIndexer()INTERNAL: Gets the indexer that should receive the documents that are generated during the iteration.TopicMapIFgetTopicMap()INTERNAL: Gets the topic map that is to be iterated.voidsetDocumentGenerator(TopicMapDocumentGeneratorIF docgen)INTERNAL: Gets the topic map document generator that is to be used.voidsetIndexer(IndexerIF indexer)INTERNAL: Sets the indexer that should receive the documents that are generated during the iteration.voidsetTopicMap(TopicMapIF topicmap)INTERNAL: Sets the topic map that is to be iterated.
-
-
-
Field Detail
-
docgen
protected TopicMapDocumentGeneratorIF docgen
-
topicmap
protected TopicMapIF topicmap
-
indexer
protected IndexerIF indexer
-
-
Constructor Detail
-
TopicMapIteratorGenerator
public TopicMapIteratorGenerator()
-
TopicMapIteratorGenerator
public TopicMapIteratorGenerator(TopicMapIF topicmap, IndexerIF indexer, TopicMapDocumentGeneratorIF docgen)
-
-
Method Detail
-
getTopicMap
public TopicMapIF getTopicMap()
INTERNAL: Gets the topic map that is to be iterated.
-
setTopicMap
public void setTopicMap(TopicMapIF topicmap)
INTERNAL: Sets the topic map that is to be iterated.
-
getIndexer
public IndexerIF getIndexer()
INTERNAL: Gets the indexer that should receive the documents that are generated during the iteration.
-
setIndexer
public void setIndexer(IndexerIF indexer)
INTERNAL: Sets the indexer that should receive the documents that are generated during the iteration.
-
getDocumentGenerator
public TopicMapDocumentGeneratorIF getDocumentGenerator()
INTERNAL: Gets the topic map document generator that is to be used.
-
setDocumentGenerator
public void setDocumentGenerator(TopicMapDocumentGeneratorIF docgen)
INTERNAL: Gets the topic map document generator that is to be used.
-
generate
public void generate() throws IOExceptionINTERNAL: Iterates over the objects in a topic map and generates indexable documents for objects in the topic map. Basenames, variant names, and occurrences are indexed.- Throws:
IOException
-
-