net.ontopia.topicmaps.core.index
Interface ScopeIndexIF

All Superinterfaces:
IndexIF
All Known Implementing Classes:
ScopeIndex, ScopeIndex

public interface ScopeIndexIF
extends IndexIF

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
 java.util.Collection<AssociationIF> getAssociations(TopicIF theme)
          PUBLIC: Gets all associations that have the given topic in their direct scope.
 java.util.Collection<TopicIF> getAssociationThemes()
          PUBLIC: Gets the set of all topics that are used in the direct scope of at least one association.
 java.util.Collection<OccurrenceIF> getOccurrences(TopicIF theme)
          PUBLIC: Gets all occurrences that have the given topic in their direct scope.
 java.util.Collection<TopicIF> getOccurrenceThemes()
          PUBLIC: Gets the set of all topics that are used in the direct scope of at least one occurrence.
 java.util.Collection<TopicNameIF> getTopicNames(TopicIF theme)
          PUBLIC: Gets all topic names that have the given topic in their direct scope.
 java.util.Collection<TopicIF> getTopicNameThemes()
          PUBLIC: Gets the set of all topics that are used in the direct scope of at least one topic name.
 java.util.Collection<VariantNameIF> getVariants(TopicIF theme)
          PUBLIC: Gets all variant names that have the given topic in their direct scope.
 java.util.Collection<TopicIF> getVariantThemes()
          PUBLIC: Gets the set of all topics that are used in the direct scope of at least one variant name.
 boolean usedAsAssociationTheme(TopicIF topic)
          PUBLIC: Returns true if the topic has been used in the direct scope of at least one association.
 boolean usedAsOccurrenceTheme(TopicIF topic)
          PUBLIC: Returns true if the topic has been used in the direct scope of at least one occurrence.
 boolean usedAsTheme(TopicIF topic)
          PUBLIC: Returns true if the topic has been used in a direct scope somewhere in the topic map.
 boolean usedAsTopicNameTheme(TopicIF topic)
          PUBLIC: Returns true if the topic has been used in the direct scope of at least one topic name.
 boolean usedAsVariantTheme(TopicIF topic)
          PUBLIC: Returns true if the topic has been used in the direct scope of at least one variant name.
 

Method Detail

getTopicNames

java.util.Collection<TopicNameIF> getTopicNames(TopicIF theme)
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

java.util.Collection<VariantNameIF> getVariants(TopicIF theme)
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

java.util.Collection<OccurrenceIF> getOccurrences(TopicIF theme)
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

java.util.Collection<AssociationIF> getAssociations(TopicIF theme)
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

java.util.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

java.util.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

java.util.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

java.util.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

boolean usedAsTopicNameTheme(TopicIF topic)
PUBLIC: Returns true if the topic has been used in the direct scope of at least one topic name.


usedAsVariantTheme

boolean usedAsVariantTheme(TopicIF topic)
PUBLIC: Returns true if the topic has been used in the direct scope of at least one variant name.


usedAsOccurrenceTheme

boolean usedAsOccurrenceTheme(TopicIF topic)
PUBLIC: Returns true if the topic has been used in the direct scope of at least one occurrence.


usedAsAssociationTheme

boolean usedAsAssociationTheme(TopicIF topic)
PUBLIC: Returns true if the topic has been used in the direct scope of at least one association.


usedAsTheme

boolean usedAsTheme(TopicIF topic)
PUBLIC: Returns true if the topic has been used in a direct scope somewhere in the topic map.



Copyright © 2000-2012 Ontopia.