|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.ontopia.topicmaps.impl.utils.AbstractIndex net.ontopia.topicmaps.impl.utils.BasicIndex net.ontopia.topicmaps.impl.basic.index.ScopeIndex
public class ScopeIndex
INTERNAL: The basic dynamic scope index implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex |
---|
BasicIndex.EventHandler |
Field Summary | |
---|---|
protected CollectionMap |
assocs
|
protected CollectionMap |
basenames
|
protected CollectionMap |
occurs
|
protected CollectionMap |
variants
|
Fields inherited from class net.ontopia.topicmaps.impl.utils.BasicIndex |
---|
handlers |
Method Summary | |
---|---|
java.util.Collection |
getAssociations(TopicIF theme)
PUBLIC: Gets all associations that have the given topic in their direct scope. |
java.util.Collection |
getAssociationThemes()
PUBLIC: Gets the set of all topics that are used in the direct scope of at least one association. |
java.util.Collection |
getOccurrences(TopicIF theme)
PUBLIC: Gets all occurrences that have the given topic in their direct scope. |
java.util.Collection |
getOccurrenceThemes()
PUBLIC: Gets the set of all topics that are used in the direct scope of at least one occurrence. |
java.util.Collection |
getTopicNames(TopicIF theme)
PUBLIC: Gets all topic names that have the given topic in their direct scope. |
java.util.Collection |
getTopicNameThemes()
PUBLIC: Gets the set of all topics that are used in the direct scope of at least one topic name. |
java.util.Collection |
getVariants(TopicIF theme)
PUBLIC: Gets all variant names that have the given topic in their direct scope. |
java.util.Collection |
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.utils.BasicIndex |
---|
getIndex, processEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CollectionMap basenames
protected CollectionMap variants
protected CollectionMap occurs
protected CollectionMap assocs
Method Detail |
---|
public java.util.Collection getTopicNames(TopicIF theme)
ScopeIndexIF
getTopicNames
in interface ScopeIndexIF
theme
- The given topic.
public java.util.Collection getVariants(TopicIF theme)
ScopeIndexIF
getVariants
in interface ScopeIndexIF
theme
- The given topic.
public java.util.Collection getOccurrences(TopicIF theme)
ScopeIndexIF
getOccurrences
in interface ScopeIndexIF
theme
- The given topic.
public java.util.Collection getAssociations(TopicIF theme)
ScopeIndexIF
getAssociations
in interface ScopeIndexIF
theme
- The given topic.
public java.util.Collection getTopicNameThemes()
ScopeIndexIF
getTopicNameThemes
in interface ScopeIndexIF
public java.util.Collection getVariantThemes()
ScopeIndexIF
getVariantThemes
in interface ScopeIndexIF
public java.util.Collection getOccurrenceThemes()
ScopeIndexIF
getOccurrenceThemes
in interface ScopeIndexIF
public java.util.Collection getAssociationThemes()
ScopeIndexIF
getAssociationThemes
in interface ScopeIndexIF
public boolean usedAsTopicNameTheme(TopicIF topic)
ScopeIndexIF
usedAsTopicNameTheme
in interface ScopeIndexIF
public boolean usedAsVariantTheme(TopicIF topic)
ScopeIndexIF
usedAsVariantTheme
in interface ScopeIndexIF
public boolean usedAsOccurrenceTheme(TopicIF topic)
ScopeIndexIF
usedAsOccurrenceTheme
in interface ScopeIndexIF
public boolean usedAsAssociationTheme(TopicIF topic)
ScopeIndexIF
usedAsAssociationTheme
in interface ScopeIndexIF
public boolean usedAsTheme(TopicIF topic)
ScopeIndexIF
usedAsTheme
in interface ScopeIndexIF
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |