Package net.ontopia.topicmaps.core.index
Interface ScopeIndexIF
- All Superinterfaces:
IndexIF
- All Known Implementing Classes:
ScopeIndex,ScopeIndex
PUBLIC: Implemented by objects holding information about topics
used as themes in scopes, and about topic map objects that have
scope. The intention is to provide quick lookup of such
information.
-
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.
-
Method Details
-
getTopicNames
PUBLIC: Gets all topic names that have the given topic in their direct scope.- Parameters:
theme- The given topic.- Returns:
- A collection of TopicNameIF objects; the topic names that have the given topic in their direct scope.
-
getVariants
PUBLIC: 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.- Parameters:
theme- The given topic.- Returns:
- A collection of VariantNameIF objects; the variant names that have the given topic in their parameters.
-
getOccurrences
PUBLIC: Gets all occurrences that have the given topic in their direct scope.- Parameters:
theme- The given topic.- Returns:
- A collection of OccurrenceIF objects; the occurrences that have the given topic in their direct scope.
-
getAssociations
PUBLIC: Gets all associations that have the given topic in their direct scope.- Parameters:
theme- The given topic.- Returns:
- A collection of AssociationIF objects; the associations that have the given topic in their direct scope.
-
getTopicNameThemes
Collection<TopicIF> getTopicNameThemes()PUBLIC: Gets the set of all topics that are used in the direct scope of at least one topic name.- Returns:
- A collection of TopicIF objects.
-
getVariantThemes
Collection<TopicIF> getVariantThemes()PUBLIC: Gets the set of all topics that are used in the direct scope of at least one variant name.- Returns:
- A collection of TopicIF objects.
-
getOccurrenceThemes
Collection<TopicIF> getOccurrenceThemes()PUBLIC: Gets the set of all topics that are used in the direct scope of at least one occurrence.- Returns:
- A collection of TopicIF objects.
-
getAssociationThemes
Collection<TopicIF> getAssociationThemes()PUBLIC: Gets the set of all topics that are used in the direct scope of at least one association.- Returns:
- A collection of TopicIF objects.
-
usedAsTopicNameTheme
PUBLIC: Returns true if the topic has been used in the direct scope of at least one topic name. -
usedAsVariantTheme
PUBLIC: Returns true if the topic has been used in the direct scope of at least one variant name. -
usedAsOccurrenceTheme
PUBLIC: Returns true if the topic has been used in the direct scope of at least one occurrence. -
usedAsAssociationTheme
PUBLIC: Returns true if the topic has been used in the direct scope of at least one association. -
usedAsTheme
PUBLIC: Returns true if the topic has been used in a direct scope somewhere in the topic map.
-