Class ScopeIndex
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractIndex
net.ontopia.topicmaps.impl.utils.BasicIndex
net.ontopia.topicmaps.impl.basic.index.ScopeIndex
- All Implemented Interfaces:
IndexIF,ScopeIndexIF,EventListenerIF
INTERNAL: The basic dynamic scope 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<TopicIF,AssociationIF> protected CollectionMap<TopicIF,TopicNameIF> protected CollectionMap<TopicIF,OccurrenceIF> protected CollectionMap<TopicIF,VariantNameIF> Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
handlers -
Method Summary
Modifier and TypeMethodDescriptiongetAssociations(TopicIF theme) PUBLIC: Gets all associations that have the given topic in their direct scope.PUBLIC: Gets the set of all topics that are used in the direct scope of at least one association.getOccurrences(TopicIF theme) PUBLIC: Gets all occurrences that have the given topic in their direct scope.PUBLIC: Gets the set of all topics that are used in the direct scope of at least one occurrence.getTopicNames(TopicIF theme) PUBLIC: Gets all topic names that have the given topic in their direct scope.PUBLIC: Gets the set of all topics that are used in the direct scope of at least one topic name.getVariants(TopicIF theme) PUBLIC: Gets all variant names that have the given topic in their direct scope.PUBLIC: Gets the set of all topics that are used in the direct scope of at least one variant name.booleanusedAsAssociationTheme(TopicIF topic) PUBLIC: Returns true if the topic has been used in the direct scope of at least one association.booleanusedAsOccurrenceTheme(TopicIF topic) PUBLIC: Returns true if the topic has been used in the direct scope of at least one occurrence.booleanusedAsTheme(TopicIF topic) PUBLIC: Returns true if the topic has been used in a direct scope somewhere in the topic map.booleanusedAsTopicNameTheme(TopicIF topic) PUBLIC: Returns true if the topic has been used in the direct scope of at least one topic name.booleanusedAsVariantTheme(TopicIF topic) PUBLIC: Returns true if the topic has been used in the direct scope of at least one variant name.Methods inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex
getIndex, processEvent
-
Field Details
-
basenames
-
variants
-
occurs
-
assocs
-
-
Method Details
-
getTopicNames
Description copied from interface:ScopeIndexIFPUBLIC: Gets all topic names that have the given topic in their direct scope.- Specified by:
getTopicNamesin interfaceScopeIndexIF- Parameters:
theme- The given topic.- Returns:
- A collection of TopicNameIF objects; the topic names that have the given topic in their direct scope.
-
getVariants
Description copied from interface:ScopeIndexIFPUBLIC: Gets all variant names that have the given topic in their direct scope. Note that 'variant' does not have a 'scope' child element, but only a 'parameters' child element, which is considered by the engine to be the same as a scope in practice.- Specified by:
getVariantsin interfaceScopeIndexIF- Parameters:
theme- The given topic.- Returns:
- A collection of VariantNameIF objects; the variant names that have the given topic in their parameters.
-
getOccurrences
Description copied from interface:ScopeIndexIFPUBLIC: Gets all occurrences that have the given topic in their direct scope.- Specified by:
getOccurrencesin interfaceScopeIndexIF- Parameters:
theme- The given topic.- Returns:
- A collection of OccurrenceIF objects; the occurrences that have the given topic in their direct scope.
-
getAssociations
Description copied from interface:ScopeIndexIFPUBLIC: Gets all associations that have the given topic in their direct scope.- Specified by:
getAssociationsin interfaceScopeIndexIF- Parameters:
theme- The given topic.- Returns:
- A collection of AssociationIF objects; the associations that have the given topic in their direct scope.
-
getTopicNameThemes
Description copied from interface:ScopeIndexIFPUBLIC: Gets the set of all topics that are used in the direct scope of at least one topic name.- Specified by:
getTopicNameThemesin interfaceScopeIndexIF- Returns:
- A collection of TopicIF objects.
-
getVariantThemes
Description copied from interface:ScopeIndexIFPUBLIC: Gets the set of all topics that are used in the direct scope of at least one variant name.- Specified by:
getVariantThemesin interfaceScopeIndexIF- Returns:
- A collection of TopicIF objects.
-
getOccurrenceThemes
Description copied from interface:ScopeIndexIFPUBLIC: Gets the set of all topics that are used in the direct scope of at least one occurrence.- Specified by:
getOccurrenceThemesin interfaceScopeIndexIF- Returns:
- A collection of TopicIF objects.
-
getAssociationThemes
Description copied from interface:ScopeIndexIFPUBLIC: Gets the set of all topics that are used in the direct scope of at least one association.- Specified by:
getAssociationThemesin interfaceScopeIndexIF- Returns:
- A collection of TopicIF objects.
-
usedAsTopicNameTheme
Description copied from interface:ScopeIndexIFPUBLIC: Returns true if the topic has been used in the direct scope of at least one topic name.- Specified by:
usedAsTopicNameThemein interfaceScopeIndexIF
-
usedAsVariantTheme
Description copied from interface:ScopeIndexIFPUBLIC: Returns true if the topic has been used in the direct scope of at least one variant name.- Specified by:
usedAsVariantThemein interfaceScopeIndexIF
-
usedAsOccurrenceTheme
Description copied from interface:ScopeIndexIFPUBLIC: Returns true if the topic has been used in the direct scope of at least one occurrence.- Specified by:
usedAsOccurrenceThemein interfaceScopeIndexIF
-
usedAsAssociationTheme
Description copied from interface:ScopeIndexIFPUBLIC: Returns true if the topic has been used in the direct scope of at least one association.- Specified by:
usedAsAssociationThemein interfaceScopeIndexIF
-
usedAsTheme
Description copied from interface:ScopeIndexIFPUBLIC: Returns true if the topic has been used in a direct scope somewhere in the topic map.- Specified by:
usedAsThemein interfaceScopeIndexIF
-