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

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractIndex
      extended by net.ontopia.topicmaps.impl.utils.BasicIndex
          extended by net.ontopia.topicmaps.impl.basic.index.NameIndex
All Implemented Interfaces:
IndexIF, NameIndexIF, EventListenerIF

public class NameIndex
extends BasicIndex
implements NameIndexIF

INTERNAL: The basic dynamic name index implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
BasicIndex.EventHandler
 
Field Summary
protected  CollectionMap basenames
           
protected  CollectionMap variants
           
 
Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
handlers
 
Method Summary
 java.util.Collection getTopicNames(java.lang.String value)
          PUBLIC: Gets all topic names that have the given name value (in any scope).
 java.util.Collection getVariants(java.lang.String value)
          INTERNAL: Gets all variants that have the specified value independent of datatype.
 java.util.Collection getVariants(java.lang.String value, LocatorIF datatype)
          INTERNAL: Gets all variants that have the specified value and datatype.
 
Methods inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
getIndex, processEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

basenames

protected CollectionMap basenames

variants

protected CollectionMap variants
Method Detail

getTopicNames

public java.util.Collection getTopicNames(java.lang.String value)
Description copied from interface: NameIndexIF
PUBLIC: Gets all topic names that have the given name value (in any scope).

Specified by:
getTopicNames in interface NameIndexIF
Parameters:
value - A string; the value of a topic name.
Returns:
A collection of TopicNameIF objects with the given name value.

getVariants

public java.util.Collection getVariants(java.lang.String value)
Description copied from interface: NameIndexIF
INTERNAL: Gets all variants that have the specified value independent of datatype.

Specified by:
getVariants in interface NameIndexIF
Returns:
A collection of VariantNameIF objects.

getVariants

public java.util.Collection getVariants(java.lang.String value,
                                        LocatorIF datatype)
Description copied from interface: NameIndexIF
INTERNAL: Gets all variants that have the specified value and datatype.

Specified by:
getVariants in interface NameIndexIF
Returns:
A collection of VariantNameIF objects.


Copyright © 2000-2012 Ontopia.