Package net.ontopia.topicmaps.impl.utils
Class BasicIndex
- java.lang.Object
-
- net.ontopia.topicmaps.impl.utils.AbstractIndex
-
- net.ontopia.topicmaps.impl.utils.BasicIndex
-
- All Implemented Interfaces:
IndexIF,EventListenerIF
- Direct Known Subclasses:
ClassInstanceIndex,FulltextIndexManager,IdentifierIndex,NameIndex,OccurrenceIndex,ScopeIndex,StatisticsIndex
public abstract class BasicIndex extends AbstractIndex implements EventListenerIF
INTERNAL: An abstract dynamic index superclass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBasicIndex.EventHandler<K,V>protected classBasicIndex.TypedPredicate
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,EventListenerIF>handlers
-
Constructor Summary
Constructors Constructor Description BasicIndex()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexIFgetIndex()INTERNAL: Method used by IndexManagerIF to manage index creation.voidprocessEvent(Object object, String event, Object new_value, Object old_value)INTERNAL: A method that receives notification when an event has been triggered.
-
-
-
Field Detail
-
handlers
protected Map<String,EventListenerIF> handlers
-
-
Method Detail
-
getIndex
public IndexIF getIndex()
Description copied from class:AbstractIndexINTERNAL: 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:
getIndexin classAbstractIndex- Returns:
- Index instance.
-
processEvent
public void processEvent(Object object, String event, Object new_value, Object old_value)
Description copied from interface:EventListenerIFINTERNAL: A method that receives notification when an event has been triggered.- Specified by:
processEventin interfaceEventListenerIF
-
-