net.ontopia.topicmaps.impl.utils
Class BasicIndex

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.AbstractIndex
      extended by net.ontopia.topicmaps.impl.utils.BasicIndex
All Implemented Interfaces:
IndexIF, EventListenerIF
Direct Known Subclasses:
ClassInstanceIndex, FulltextIndexManager, NameIndex, OccurrenceIndex, ScopeIndex

public abstract class BasicIndex
extends AbstractIndex
implements EventListenerIF

INTERNAL: An abstract dynamic index superclass.


Nested Class Summary
 class BasicIndex.EventHandler
           
 
Field Summary
protected  java.util.Map<java.lang.String,EventListenerIF> handlers
           
 
Constructor Summary
BasicIndex()
           
 
Method Summary
 IndexIF getIndex()
          INTERNAL: Method used by IndexManagerIF to manage index creation.
 void processEvent(java.lang.Object object, java.lang.String event, java.lang.Object new_value, java.lang.Object old_value)
          INTERNAL: A method that receives notification when an event has been triggered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

handlers

protected java.util.Map<java.lang.String,EventListenerIF> handlers
Constructor Detail

BasicIndex

public BasicIndex()
Method Detail

getIndex

public IndexIF getIndex()
Description copied from class: AbstractIndex
INTERNAL: Method used by IndexManagerIF to manage index creation. The idea behind this method is for the index itself to decide whether to create a new instance every time or the same one.

Specified by:
getIndex in class AbstractIndex
Returns:
Index instance.

processEvent

public void processEvent(java.lang.Object object,
                         java.lang.String event,
                         java.lang.Object new_value,
                         java.lang.Object old_value)
Description copied from interface: EventListenerIF
INTERNAL: A method that receives notification when an event has been triggered.

Specified by:
processEvent in interface EventListenerIF


Copyright © 2000-2012 Ontopia.