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 class
BasicIndex.EventHandler<K,V>
protected class
BasicIndex.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 IndexIF
getIndex()
INTERNAL: Method used by IndexManagerIF to manage index creation.void
processEvent(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: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 classAbstractIndex
- Returns:
- Index instance.
-
processEvent
public void processEvent(Object object, String event, Object new_value, Object old_value)
Description copied from interface:EventListenerIF
INTERNAL: A method that receives notification when an event has been triggered.- Specified by:
processEvent
in interfaceEventListenerIF
-
-