public class ScopeIndex extends BasicIndex implements ScopeIndexIF
BasicIndex.EventHandler<K,V>, BasicIndex.TypedPredicate
Modifier and Type | Field and Description |
---|---|
protected CollectionMap<TopicIF,AssociationIF> |
assocs |
protected CollectionMap<TopicIF,TopicNameIF> |
basenames |
protected CollectionMap<TopicIF,OccurrenceIF> |
occurs |
protected CollectionMap<TopicIF,VariantNameIF> |
variants |
handlers
Modifier and Type | Method and Description |
---|---|
Collection<AssociationIF> |
getAssociations(TopicIF theme)
PUBLIC: Gets all associations that have the given topic in their direct scope.
|
Collection<TopicIF> |
getAssociationThemes()
PUBLIC: Gets the set of all topics that are used in the direct scope
of at least one association.
|
Collection<OccurrenceIF> |
getOccurrences(TopicIF theme)
PUBLIC: Gets all occurrences that have the given topic in their direct scope.
|
Collection<TopicIF> |
getOccurrenceThemes()
PUBLIC: Gets the set of all topics that are used in the direct scope
of at least one occurrence.
|
Collection<TopicNameIF> |
getTopicNames(TopicIF theme)
PUBLIC: Gets all topic names that have the given topic in their direct
scope.
|
Collection<TopicIF> |
getTopicNameThemes()
PUBLIC: Gets the set of all topics that are used in the direct scope
of at least one topic name.
|
Collection<VariantNameIF> |
getVariants(TopicIF theme)
PUBLIC: Gets all variant names that have the given topic in their direct
scope.
|
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.
|
getIndex, processEvent
protected CollectionMap<TopicIF,TopicNameIF> basenames
protected CollectionMap<TopicIF,VariantNameIF> variants
protected CollectionMap<TopicIF,OccurrenceIF> occurs
protected CollectionMap<TopicIF,AssociationIF> assocs
public Collection<TopicNameIF> getTopicNames(TopicIF theme)
ScopeIndexIF
getTopicNames
in interface ScopeIndexIF
theme
- The given topic.public Collection<VariantNameIF> getVariants(TopicIF theme)
ScopeIndexIF
getVariants
in interface ScopeIndexIF
theme
- The given topic.public Collection<OccurrenceIF> getOccurrences(TopicIF theme)
ScopeIndexIF
getOccurrences
in interface ScopeIndexIF
theme
- The given topic.public Collection<AssociationIF> getAssociations(TopicIF theme)
ScopeIndexIF
getAssociations
in interface ScopeIndexIF
theme
- The given topic.public Collection<TopicIF> getTopicNameThemes()
ScopeIndexIF
getTopicNameThemes
in interface ScopeIndexIF
public Collection<TopicIF> getVariantThemes()
ScopeIndexIF
getVariantThemes
in interface ScopeIndexIF
public Collection<TopicIF> getOccurrenceThemes()
ScopeIndexIF
getOccurrenceThemes
in interface ScopeIndexIF
public Collection<TopicIF> 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