de.topicmapslab.majortom.index.nonpaged
Class CachedScopeIndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<T>
      extended by de.topicmapslab.majortom.index.core.BaseCachedIndexImpl<T>
          extended by de.topicmapslab.majortom.index.core.BaseCachedScopeIndexImpl<T>
              extended by de.topicmapslab.majortom.index.nonpaged.CachedScopeIndexImpl<T>
All Implemented Interfaces:
de.topicmapslab.majortom.model.event.ITopicMapListener, de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.IScopedIndex, org.tmapi.index.Index, org.tmapi.index.ScopedIndex
Direct Known Subclasses:
JdbcScopedIndex

public abstract class CachedScopeIndexImpl<T extends de.topicmapslab.majortom.model.store.ITopicMapStore>
extends BaseCachedScopeIndexImpl<T>
implements de.topicmapslab.majortom.model.index.IScopedIndex

Implementation of IPagedScopedIndex

Author:
Sven Krosse

Constructor Summary
CachedScopeIndexImpl(T store)
          constructor
 
Method Summary
protected abstract  java.util.Collection<org.tmapi.core.Association> doGetAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          Returns all association items scoped by one of the given scope objects.
protected abstract  java.util.Collection<org.tmapi.core.Association> doGetAssociations(de.topicmapslab.majortom.model.core.IScope scope)
          Returns all association items scoped by the given scope object.
protected abstract  java.util.Collection<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic theme)
          Returning all associations in the scope containing the given theme.
protected abstract  java.util.Collection<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic[] themes, boolean all)
          Returning all associations in the scope containing the given themes.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetAssociationScopes()
          Returns all scope objects used as scope of an association item.
protected abstract  java.util.Collection<org.tmapi.core.Topic> doGetAssociationThemes()
          Returning all themes contained by at least one association scope.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          Returns all characteristics scoped by one of the given scope objects.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)
          Returns all characteristics scoped by the given scope object.
protected abstract  java.util.Collection<org.tmapi.core.Name> doGetNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          Return all names scoped by one of the given scope objects
protected abstract  java.util.Collection<org.tmapi.core.Name> doGetNames(de.topicmapslab.majortom.model.core.IScope scope)
          Return all names scoped by the given scope object
protected abstract  java.util.Collection<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic theme)
          Returning all names in the scope containing the given theme.
protected abstract  java.util.Collection<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic[] themes, boolean all)
          Returning all names in the scope containing the given themes.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetNameScopes()
          Returns all scope objects used as scope of a name item.
protected abstract  java.util.Collection<org.tmapi.core.Topic> doGetNameThemes()
          Returning all themes contained by at least one name scope.
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          Return all occurrences scoped by one of the given scope objects
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(de.topicmapslab.majortom.model.core.IScope scope)
          Return all occurrences scoped by the given scope object
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic theme)
          Returning all occurrences in the scope containing the given theme.
protected abstract  java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic[] themes, boolean all)
          Returning all occurrences in the scope containing the given themes.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetOccurrenceScopes()
          Returns all scope objects used as scope of an occurrence item.
protected abstract  java.util.Collection<org.tmapi.core.Topic> doGetOccurrenceThemes()
          Returning all themes contained by at least one occurrence scope.
protected abstract  java.util.Collection<org.tmapi.core.Scoped> doGetScopables(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          Returns all constructs scoped by one of the given scope object.
protected abstract  java.util.Collection<org.tmapi.core.Scoped> doGetScopables(de.topicmapslab.majortom.model.core.IScope scope)
          Returns all constructs scoped by the given scope object.
protected abstract  de.topicmapslab.majortom.model.core.IScope doGetScope(java.util.Collection<? extends org.tmapi.core.Topic> themes)
          Returns the scope of the given themes
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetScopes(java.util.Collection<? extends org.tmapi.core.Topic> themes, boolean matchingAll)
          Returns the scopes of the given themes
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
          Return all variants scoped by one of the given scope objects
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants(de.topicmapslab.majortom.model.core.IScope scope)
          Return all variants scoped by the given scope object
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic theme)
          Returning all variants in the scope containing the given theme.
protected abstract  java.util.Collection<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic[] themes, boolean all)
          Returning all variants in the scope containing the given themes.
protected abstract  java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetVariantScopes()
          Returns all scope objects used as scope of a variant item.
protected abstract  java.util.Collection<org.tmapi.core.Topic> doGetVariantThemes()
          Returning all themes contained by at least one variant scope.
 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 all)
          
 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 all)
          
 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 all)
          
 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 all)
          
 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.core.BaseCachedScopeIndexImpl
cache, cache, cacheNumberOfConstructs, cacheScope, cacheScopes, cacheScopes, cacheScopes, cacheScopes, cacheThemes, cacheThemes, clear, clearCache, close, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, generateScopesCacheKey, open, read, read, readNumberOfConstructs, readScope, readScopes, readScopes, readScopes, readScopes, readThemes, readThemes, topicMapChanged
 
Methods inherited from class de.topicmapslab.majortom.index.core.BaseCachedIndexImpl
isCachingEnabled, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext, isOnTransactionContext
 
Methods inherited from class de.topicmapslab.majortom.index.IndexImpl
getTopicMapStore, isAutoUpdated, isOpen, 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

CachedScopeIndexImpl

public CachedScopeIndexImpl(T store)
constructor

Parameters:
store - the 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

getAssociationScopes

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

Specified by:
getAssociationScopes 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

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 all)

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

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

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

getNameScopes

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

Specified by:
getNameScopes 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

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 all)

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

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

getOccurrenceScopes

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

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

getOccurrenceThemes

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

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

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 all)

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

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

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

getVariantScopes

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

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

getVariantThemes

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

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

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 all)

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

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

doGetScope

protected abstract de.topicmapslab.majortom.model.core.IScope doGetScope(java.util.Collection<? extends org.tmapi.core.Topic> themes)
Returns the scope of the given themes

Parameters:
themes - the themes
Returns:
the scope object and never null

doGetScopes

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetScopes(java.util.Collection<? extends org.tmapi.core.Topic> themes,
                                                                                                boolean matchingAll)
Returns the scopes of the given themes

Parameters:
themes - the themes
matchingAll - flag indicates if the returned scopes has to contain all themes
Returns:
the set of scope object and never null

doGetScopables

protected abstract java.util.Collection<org.tmapi.core.Scoped> doGetScopables(de.topicmapslab.majortom.model.core.IScope scope)
Returns all constructs scoped by the given scope object.

Parameters:
scope - the scope
Returns:
a Collection of all constructs scoped by the given scope

doGetScopables

protected abstract java.util.Collection<org.tmapi.core.Scoped> doGetScopables(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Returns all constructs scoped by one of the given scope object.

Parameters:
scope - the scope
Returns:
a Collection of all constructs scoped by one of the given scope object.

doGetAssociationScopes

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetAssociationScopes()
Returns all scope objects used as scope of an association item. Default implementation only calls the parent index.

Returns:
a Collection of scope objects

doGetAssociationThemes

protected abstract java.util.Collection<org.tmapi.core.Topic> doGetAssociationThemes()
Returning all themes contained by at least one association scope. Default implementation only calls the parent index.

Returns:
all themes contained by at least one association scope.

doGetAssociations

protected abstract java.util.Collection<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic theme)
Returning all associations in the scope containing the given theme.

Parameters:
theme - the theme
Returns:
all associations

doGetAssociations

protected abstract java.util.Collection<org.tmapi.core.Association> doGetAssociations(org.tmapi.core.Topic[] themes,
                                                                                      boolean all)
Returning all associations in the scope containing the given themes.

Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
Returns:
all associations

doGetAssociations

protected abstract java.util.Collection<org.tmapi.core.Association> doGetAssociations(de.topicmapslab.majortom.model.core.IScope scope)
Returns all association items scoped by the given scope object.

Parameters:
scope - the scope
Returns:
a collection of all association items scoped by the given scope

doGetAssociations

protected abstract java.util.Collection<org.tmapi.core.Association> doGetAssociations(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Returns all association items scoped by one of the given scope objects.

Parameters:
scopes - the scopes
Returns:
a Collection of all association items scoped by one of the given scopes

doGetCharacteristics

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(de.topicmapslab.majortom.model.core.IScope scope)
Returns all characteristics scoped by the given scope object.

Parameters:
scope - the scope
Returns:
a Collection of all characteristics scoped by the given scope

doGetCharacteristics

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> doGetCharacteristics(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Returns all characteristics scoped by one of the given scope objects.

Parameters:
scopes - the scopes
Returns:
a Collection of all characteristics scoped by one of the given scope objects.

doGetOccurrenceScopes

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetOccurrenceScopes()
Returns all scope objects used as scope of an occurrence item.

Returns:
a Collection of scope objects

doGetOccurrenceThemes

protected abstract java.util.Collection<org.tmapi.core.Topic> doGetOccurrenceThemes()
Returning all themes contained by at least one occurrence scope.

Returns:
all themes contained by at least one occurrence scope.

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic theme)
Returning all occurrences in the scope containing the given theme.

Parameters:
theme - the theme
Returns:
all occurrences

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(org.tmapi.core.Topic[] themes,
                                                                                    boolean all)
Returning all occurrences in the scope containing the given themes.

Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
Returns:
all occurrences

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(de.topicmapslab.majortom.model.core.IScope scope)
Return all occurrences scoped by the given scope object

Parameters:
scope - the scope object
Returns:
all occurrences scoped by the given scope object within the given range

doGetOccurrences

protected abstract java.util.Collection<org.tmapi.core.Occurrence> doGetOccurrences(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Return all occurrences scoped by one of the given scope objects

Parameters:
scopes - the scope objects
Returns:
all occurrences scoped by one of the given scope objects

doGetNameScopes

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetNameScopes()
Returns all scope objects used as scope of a name item.

Returns:
a collection of scope objects

doGetNameThemes

protected abstract java.util.Collection<org.tmapi.core.Topic> doGetNameThemes()
Returning all themes contained by at least one name scope.

Returns:
all themes contained by at least one name scope.

doGetNames

protected abstract java.util.Collection<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic theme)
Returning all names in the scope containing the given theme.

Parameters:
theme - the theme
Returns:
all names

doGetNames

protected abstract java.util.Collection<org.tmapi.core.Name> doGetNames(org.tmapi.core.Topic[] themes,
                                                                        boolean all)
Returning all names in the scope containing the given themes.

Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
Returns:
all names

doGetNames

protected abstract java.util.Collection<org.tmapi.core.Name> doGetNames(de.topicmapslab.majortom.model.core.IScope scope)
Return all names scoped by the given scope object

Parameters:
scope - the scope object
Returns:
all names scoped by the given scope object

doGetNames

protected abstract java.util.Collection<org.tmapi.core.Name> doGetNames(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Return all names scoped by one of the given scope objects

Parameters:
scopes - the scope objects
Returns:
all names scoped by one of the given scope objects

doGetVariantScopes

protected abstract java.util.Collection<de.topicmapslab.majortom.model.core.IScope> doGetVariantScopes()
Returns all scope objects used as scope of a variant item.

Returns:
a collection of scope objects

doGetVariantThemes

protected abstract java.util.Collection<org.tmapi.core.Topic> doGetVariantThemes()
Returning all themes contained by at least one variant scope.

Returns:
all themes contained by at least one variant scope.

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic theme)
Returning all variants in the scope containing the given theme.

Parameters:
theme - the theme
Returns:
all variants

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants(org.tmapi.core.Topic[] themes,
                                                                              boolean all)
Returning all variants in the scope containing the given themes.

Parameters:
themes - the themes
all - flag indicates if all themes have to be contained
Returns:
all variants

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants(de.topicmapslab.majortom.model.core.IScope scope)
Return all variants scoped by the given scope object

Parameters:
scope - the scope object
Returns:
all variants scoped by the given scope object

doGetVariants

protected abstract java.util.Collection<org.tmapi.core.Variant> doGetVariants(java.util.Collection<de.topicmapslab.majortom.model.core.IScope> scopes)
Return all variants scoped by one of the given scope objects

Parameters:
scopes - the scope objects
Returns:
all variants scoped by one of the given scope objects