de.topicmapslab.majortom.inmemory.index
Class InMemoryTransitiveTypeInstanceIndex

java.lang.Object
  extended by de.topicmapslab.majortom.index.IndexImpl<InMemoryTopicMapStore>
      extended by de.topicmapslab.majortom.inmemory.index.InMemoryTypeInstanceIndex
          extended by de.topicmapslab.majortom.inmemory.index.InMemoryTransitiveTypeInstanceIndex
All Implemented Interfaces:
de.topicmapslab.majortom.model.index.IIndex, de.topicmapslab.majortom.model.index.ITransitiveTypeInstanceIndex, de.topicmapslab.majortom.model.index.ITypeInstanceIndex, org.tmapi.index.Index, org.tmapi.index.TypeInstanceIndex

public class InMemoryTransitiveTypeInstanceIndex
extends InMemoryTypeInstanceIndex
implements de.topicmapslab.majortom.model.index.ITransitiveTypeInstanceIndex

Author:
Sven Krosse

Constructor Summary
InMemoryTransitiveTypeInstanceIndex(InMemoryTopicMapStore store)
          constructor
 
Method Summary
 java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Association> getAssociations(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getAssociationTypes()
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic... types)
          
 java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getCharacteristicTypes()
          
 java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Name> getNames(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getNameTypes()
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getOccurrenceTypes()
          
 java.util.Collection<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getRoleTypes()
          
private  de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex getSupertypeSubtypeIndex()
           
 java.util.Collection<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types, boolean all)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic... types)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic type)
          
 java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic[] types, boolean all)
          
 java.util.Collection<org.tmapi.core.Topic> getTopicTypes()
          
 
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

InMemoryTransitiveTypeInstanceIndex

public InMemoryTransitiveTypeInstanceIndex(InMemoryTopicMapStore store)
constructor

Parameters:
store - the parent in-memory topic map store
Method Detail

getSupertypeSubtypeIndex

private de.topicmapslab.majortom.model.index.ISupertypeSubtypeIndex getSupertypeSubtypeIndex()

getAssociationTypes

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

Specified by:
getAssociationTypes in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getAssociationTypes in class InMemoryTypeInstanceIndex

getOccurrenceTypes

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

Specified by:
getOccurrenceTypes in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getOccurrenceTypes in class InMemoryTypeInstanceIndex

getNameTypes

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

Specified by:
getNameTypes in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getNameTypes in class InMemoryTypeInstanceIndex

getTopicTypes

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

Specified by:
getTopicTypes in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getTopicTypes in class InMemoryTypeInstanceIndex

getRoleTypes

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

Specified by:
getRoleTypes in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getRoleTypes in class InMemoryTypeInstanceIndex

getCharacteristicTypes

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

Specified by:
getCharacteristicTypes in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getCharacteristicTypes in class InMemoryTypeInstanceIndex

getAssociations

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

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getAssociations in class InMemoryTypeInstanceIndex

getAssociations

public java.util.Collection<org.tmapi.core.Association> getAssociations(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getAssociations in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getAssociations in class InMemoryTypeInstanceIndex

getAssociations

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

Specified by:
getAssociations in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getAssociations in class InMemoryTypeInstanceIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic type)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getCharacteristics in class InMemoryTypeInstanceIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(org.tmapi.core.Topic... types)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getCharacteristics in class InMemoryTypeInstanceIndex

getCharacteristics

public java.util.Collection<de.topicmapslab.majortom.model.core.ICharacteristics> getCharacteristics(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getCharacteristics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getCharacteristics in class InMemoryTypeInstanceIndex

getRoles

public java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic... types)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getRoles in class InMemoryTypeInstanceIndex

getRoles

public java.util.Collection<org.tmapi.core.Role> getRoles(org.tmapi.core.Topic type)

Specified by:
getRoles in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getRoles in class InMemoryTypeInstanceIndex

getRoles

public java.util.Collection<org.tmapi.core.Role> getRoles(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getRoles in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getRoles in class InMemoryTypeInstanceIndex

getNames

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

Specified by:
getNames in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getNames in class InMemoryTypeInstanceIndex

getNames

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

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getNames in class InMemoryTypeInstanceIndex

getNames

public java.util.Collection<org.tmapi.core.Name> getNames(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getNames in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getNames in class InMemoryTypeInstanceIndex

getOccurrences

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

Specified by:
getOccurrences in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getOccurrences in class InMemoryTypeInstanceIndex

getOccurrences

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

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getOccurrences in class InMemoryTypeInstanceIndex

getOccurrences

public java.util.Collection<org.tmapi.core.Occurrence> getOccurrences(java.util.Collection<? extends org.tmapi.core.Topic> types)

Specified by:
getOccurrences in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getOccurrences in class InMemoryTypeInstanceIndex

getTopics

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

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getTopics in class InMemoryTypeInstanceIndex

getTopics

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

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getTopics in class InMemoryTypeInstanceIndex

getTopics

public java.util.Collection<org.tmapi.core.Topic> getTopics(java.util.Collection<org.tmapi.core.Topic> types,
                                                            boolean all)

Specified by:
getTopics in interface de.topicmapslab.majortom.model.index.ITypeInstanceIndex
Overrides:
getTopics in class InMemoryTypeInstanceIndex

getTopics

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

Specified by:
getTopics in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getTopics in class InMemoryTypeInstanceIndex

getTopics

public java.util.Collection<org.tmapi.core.Topic> getTopics(org.tmapi.core.Topic[] types,
                                                            boolean all)

Specified by:
getTopics in interface org.tmapi.index.TypeInstanceIndex
Overrides:
getTopics in class InMemoryTypeInstanceIndex