Class NameIndex
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractIndex
net.ontopia.topicmaps.impl.utils.BasicIndex
net.ontopia.topicmaps.impl.basic.index.NameIndex
- All Implemented Interfaces:
IndexIF,NameIndexIF,EventListenerIF
INTERNAL: The basic dynamic name index implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
BasicIndex.EventHandler<K,V>, BasicIndex.TypedPredicate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CollectionMap<String,TopicNameIF> protected CollectionMap<String,VariantNameIF> Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
handlers -
Method Summary
Modifier and TypeMethodDescriptiongetTopicNames(String value) PUBLIC: Gets all topic names that have the given name value (in any scope).getTopicNames(String value, TopicIF topicNameType) PUBLIC: Gets all topic names that have the given name value (in any scope) and topicNameType.getVariants(String value) INTERNAL: Gets all variants that have the specified value independent of datatype.getVariants(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
-
Field Details
-
basenames
-
variants
-
-
Method Details
-
getTopicNames
Description copied from interface:NameIndexIFPUBLIC: Gets all topic names that have the given name value (in any scope).- Specified by:
getTopicNamesin interfaceNameIndexIF- Parameters:
value- A string; the value of a topic name.- Returns:
- A collection of TopicNameIF objects with the given name value.
-
getTopicNames
Description copied from interface:NameIndexIFPUBLIC: Gets all topic names that have the given name value (in any scope) and topicNameType.- Specified by:
getTopicNamesin interfaceNameIndexIF- Parameters:
value- A string; the value of a topic nametopicNameType- A TopicIF; the type of a topic name- Returns:
- A collection of TopicNameIF objects with the given name value and type.
-
getVariants
Description copied from interface:NameIndexIFINTERNAL: Gets all variants that have the specified value independent of datatype.- Specified by:
getVariantsin interfaceNameIndexIF- Returns:
- A collection of VariantNameIF objects.
-
getVariants
Description copied from interface:NameIndexIFINTERNAL: Gets all variants that have the specified value and datatype.- Specified by:
getVariantsin interfaceNameIndexIF- Returns:
- A collection of VariantNameIF objects.
-