de.topicmapslab.majortom.inmemory.index
Class InMemoryScopedIndex

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<InMemoryTopicMapStore>
      extended by de.topicmapslab.majortom.inmemory.index.InMemoryScopedIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.IScopedIndex, org.tmapi.index.Index, org.tmapi.index.ScopedIndex

public class InMemoryScopedIndex
extends IndexImpl<InMemoryTopicMapStore>
implements de.topicmapslab.majortom.model.index.IScopedIndex

Base implementation of IScopedIndex

Author:
Sven Krosse

Constructor Summary
InMemoryScopedIndex(InMemoryTopicMapStore store)
          constructor
 
Method Summary
 java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope... scopes)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic theme)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic[] themes, boolean matchAll)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getAssociationScopes()
          
 java.util.Collection<org.tmapi.core.Topic> getAssociationThemes()
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope... scopes)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          
 java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope... scopes)
          
 java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic theme)
          
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic[] themes, boolean matchAll)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getNameScopes()
          
 java.util.Collection<org.tmapi.core.Topic> getNameThemes()
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope... scopes)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic theme)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic[] themes, boolean matchAll)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getOccurrenceScopes()
          
 java.util.Collection<org.tmapi.core.Topic> getOccurrenceThemes()
          
 java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope... scopes)
          
 java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope scope)
          
 de.topicmapslab.majortom.model.core.IScope getScope(java.util.Collection<? extends org.tmapi.core.Topic> themes)
          
 de.topicmapslab.majortom.model.core.IScope getScope(org.tmapi.core.Topic... themes)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(java.util.Collection<org.tmapi.core.Topic> themes, boolean matchAll)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic... themes)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic[] themes, boolean matchAll)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope... scopes)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope scope)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic theme)
          
 java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic[] themes, boolean matchAll)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getVariantScopes()
          
 java.util.Collection<org.tmapi.core.Topic> getVariantThemes()
          
 
Methods inherited from class de.topicmapslab.majortom.index.IndexImpl
clear, close, getTopicMapStore, isAutoUpdated, isOpen, open, reindex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.topicmapslab.majortom.model.index.IIndex
clear
 
Methods inherited from interface org.tmapi.index.Index
close, isAutoUpdated, isOpen, open, reindex
 

Constructor Detail

InMemoryScopedIndex

public InMemoryScopedIndex(InMemoryTopicMapStore store)
constructor

Parameters:
store - the in-memory store
Method Detail

getScope

public de.topicmapslab.majortom.model.core.IScope getScope(org.tmapi.core.Topic... themes)

Specified by:
getScope in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScope

public de.topicmapslab.majortom.model.core.IScope getScope(java.util.Collection<? extends org.tmapi.core.Topic> themes)

Specified by:
getScope in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic... themes)

Specified by:
getScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(org.tmapi.core.Topic[] themes,
                                                                                  boolean matchAll)

Specified by:
getScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getScopes(java.util.Collection<org.tmapi.core.Topic> themes,
                                                                                  boolean matchAll)

Specified by:
getScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopables

public java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getScopables in interface de.topicmapslab.majortom.model.index.IScopedIndex

getScopables

public java.util.Collection<org.tmapi.core.Scoped> getScopables(de.topicmapslab.majortom.model.core.IScope... scopes)

Specified by:
getScopables in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociationThemes

public java.util.Collection<org.tmapi.core.Topic> getAssociationThemes()

Specified by:
getAssociationThemes in interface org.tmapi.index.ScopedIndex

getAssociationScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getAssociationScopes()

Specified by:
getAssociationScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(de.topicmapslab.majortom.model.core.IScope... scopes)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.IScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic theme)

Specified by:
getAssociations in interface org.tmapi.index.ScopedIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic[] themes,
                                                                        boolean matchAll)

Specified by:
getAssociations in interface org.tmapi.index.ScopedIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.IScopedIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(de.topicmapslab.majortom.model.core.IScope... scopes)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNameThemes

public java.util.Collection<org.tmapi.core.Topic> getNameThemes()

Specified by:
getNameThemes in interface org.tmapi.index.ScopedIndex

getNameScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getNameScopes()

Specified by:
getNameScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(de.topicmapslab.majortom.model.core.IScope... scopes)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.IScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic theme)

Specified by:
getNames in interface org.tmapi.index.ScopedIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic[] themes,
                                                          boolean matchAll)

Specified by:
getNames in interface org.tmapi.index.ScopedIndex

getOccurrenceThemes

public java.util.Collection<org.tmapi.core.Topic> getOccurrenceThemes()

Specified by:
getOccurrenceThemes in interface org.tmapi.index.ScopedIndex

getOccurrenceScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getOccurrenceScopes()

Specified by:
getOccurrenceScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(de.topicmapslab.majortom.model.core.IScope... scopes)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.IScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic theme)

Specified by:
getOccurrences in interface org.tmapi.index.ScopedIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic[] themes,
                                                                      boolean matchAll)

Specified by:
getOccurrences in interface org.tmapi.index.ScopedIndex

getVariantThemes

public java.util.Collection<org.tmapi.core.Topic> getVariantThemes()

Specified by:
getVariantThemes in interface org.tmapi.index.ScopedIndex

getVariantScopes

public java.util.Collection<de.topicmapslab.majortom.model.core.IScope> getVariantScopes()

Specified by:
getVariantScopes in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope scope)

Specified by:
getVariants in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(de.topicmapslab.majortom.model.core.IScope... scopes)

Specified by:
getVariants in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)

Specified by:
getVariants in interface de.topicmapslab.majortom.model.index.IScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic theme)

Specified by:
getVariants in interface org.tmapi.index.ScopedIndex

getVariants

public java.util.Collection<org.tmapi.core.Variant> getVariants(org.tmapi.core.Topic[] themes,
                                                                boolean matchAll)

Specified by:
getVariants in interface org.tmapi.index.ScopedIndex