net.ontopia.topicmaps.impl.rdbms.index
Class ScopeIndex

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractIndex
      extended by net.ontopia.topicmaps.impl.rdbms.index.RDBMSIndex
          extended by net.ontopia.topicmaps.impl.rdbms.index.ScopeIndex
All Implemented Interfaces:
IndexIF, ScopeIndexIF

public class ScopeIndex
extends RDBMSIndex
implements ScopeIndexIF

INTERNAL: The rdbms scope index implementation.


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.
 
Methods inherited from class net.ontopia.topicmaps.impl.rdbms.index.RDBMSIndex
executeQuery, getIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTopicNames

public java.util.Collection<TopicNameIF> getTopicNames(TopicIF theme)
Description copied from interface: ScopeIndexIF
PUBLIC: Gets all topic names that have the given topic in their direct scope.

Specified by:
getTopicNames in interface ScopeIndexIF
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 java.util.Collection<VariantNameIF> getVariants(TopicIF theme)
Description copied from interface: ScopeIndexIF
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.

Specified by:
getVariants in interface ScopeIndexIF
Parameters:
theme - The given topic.
Returns:
A collection of VariantNameIF objects; the variant names that have the given topic in their parameters.

getOccurrences

public java.util.Collection<OccurrenceIF> getOccurrences(TopicIF theme)
Description copied from interface: ScopeIndexIF
PUBLIC: Gets all occurrences that have the given topic in their direct scope.

Specified by:
getOccurrences in interface ScopeIndexIF
Parameters:
theme - The given topic.
Returns:
A collection of OccurrenceIF objects; the occurrences that have the given topic in their direct scope.

getAssociations

public java.util.Collection<AssociationIF> getAssociations(TopicIF theme)
Description copied from interface: ScopeIndexIF
PUBLIC: Gets all associations that have the given topic in their direct scope.

Specified by:
getAssociations in interface ScopeIndexIF
Parameters:
theme - The given topic.
Returns:
A collection of AssociationIF objects; the associations that have the given topic in their direct scope.

getTopicNameThemes

public java.util.Collection<TopicIF> getTopicNameThemes()
Description copied from interface: ScopeIndexIF
PUBLIC: Gets the set of all topics that are used in the direct scope of at least one topic name.

Specified by:
getTopicNameThemes in interface ScopeIndexIF
Returns:
A collection of TopicIF objects.

getVariantThemes

public java.util.Collection<TopicIF> getVariantThemes()
Description copied from interface: ScopeIndexIF
PUBLIC: Gets the set of all topics that are used in the direct scope of at least one variant name.

Specified by:
getVariantThemes in interface ScopeIndexIF
Returns:
A collection of TopicIF objects.

getOccurrenceThemes

public java.util.Collection<TopicIF> getOccurrenceThemes()
Description copied from interface: ScopeIndexIF
PUBLIC: Gets the set of all topics that are used in the direct scope of at least one occurrence.

Specified by:
getOccurrenceThemes in interface ScopeIndexIF
Returns:
A collection of TopicIF objects.

getAssociationThemes

public java.util.Collection<TopicIF> getAssociationThemes()
Description copied from interface: ScopeIndexIF
PUBLIC: Gets the set of all topics that are used in the direct scope of at least one association.

Specified by:
getAssociationThemes in interface ScopeIndexIF
Returns:
A collection of TopicIF objects.

usedAsTopicNameTheme

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

Specified by:
usedAsTopicNameTheme in interface ScopeIndexIF

usedAsVariantTheme

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

Specified by:
usedAsVariantTheme in interface ScopeIndexIF

usedAsOccurrenceTheme

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

Specified by:
usedAsOccurrenceTheme in interface ScopeIndexIF

usedAsAssociationTheme

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

Specified by:
usedAsAssociationTheme in interface ScopeIndexIF

usedAsTheme

public boolean usedAsTheme(TopicIF topic)
Description copied from interface: ScopeIndexIF
PUBLIC: Returns true if the topic has been used in a direct scope somewhere in the topic map.

Specified by:
usedAsTheme in interface ScopeIndexIF


Copyright © 2000-2012 Ontopia.