net.ontopia.topicmaps.impl.basic.index
Class TNCIndex

java.lang.Object
  extended by net.ontopia.topicmaps.impl.basic.index.TNCIndex
All Implemented Interfaces:
IndexIF

public class TNCIndex
extends java.lang.Object
implements IndexIF

INTERNAL: Index providing lookups from base name value + scope to the topic that has such base name characteristics. (TNC = Topic Naming Constraint).


Field Summary
protected  NameIndexIF nameix
           
 
Constructor Summary
TNCIndex(NameIndexIF nameix)
           
TNCIndex(TopicMapIF topicmap)
           
 
Method Summary
 java.util.Collection getTopics(java.lang.String basename_string, java.util.Collection scope)
          INTERNAL: Returns the topics that have a basename with the given string value in the given scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameix

protected NameIndexIF nameix
Constructor Detail

TNCIndex

public TNCIndex(NameIndexIF nameix)

TNCIndex

public TNCIndex(TopicMapIF topicmap)
Method Detail

getTopics

public java.util.Collection getTopics(java.lang.String basename_string,
                                      java.util.Collection scope)
INTERNAL: Returns the topics that have a basename with the given string value in the given scope.

This method is used to look up topics in the socalled topic name space. Note that whether a single topic is returned depends on whether the topic map have been completely processed or not.



Copyright © 2000-2012 Ontopia.