Package net.ontopia.topicmaps.impl.utils
Class AbstractSubjectIdentityCache
java.lang.Object
net.ontopia.topicmaps.impl.utils.AbstractSubjectIdentityCache
- All Implemented Interfaces:
Serializable,EventListenerIF
- Direct Known Subclasses:
SubjectIdentityCache,SubjectIdentityCache
public abstract class AbstractSubjectIdentityCache
extends Object
implements EventListenerIF, Serializable
INTERNAL: Class that maintains indexes for use with the TopicMapIF locator
lookup methods. This is especially useful in the cases where the topic map
object cannot use queries to do the lookups.
This class uses the event model to maintain its indexes.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract TMObjectIF_getObjectByItemIdentifier(LocatorIF source_locator) protected abstract TopicIF_getTopicBySubjectIdentifier(LocatorIF subject_indicator) protected abstract TopicIF_getTopicBySubjectLocator(LocatorIF subject) abstract TMObjectIFgetObjectById(String object_id) abstract TMObjectIFgetObjectByItemIdentifier(LocatorIF locator) abstract TopicIFgetTopicBySubjectIdentifier(LocatorIF locator) abstract TopicIFgetTopicBySubjectLocator(LocatorIF locator) voidprocessEvent(Object object, String event, Object new_value, Object old_value) INTERNAL: A method that receives notification when an event has been triggered.voidregisterListeners(EventManagerIF emanager, EventManagerIF otree) INTERNAL: Registers the subject identity cache listeners with the default event manager and the object tree event managers.protected voidregisterObject(TMObjectIF object) INTERNAL: Register the object with the identity map.protected abstract voidregisterSourceLocator(LocatorIF source_locator, TMObjectIF object) protected abstract voidregisterSubject(LocatorIF subject, TopicIF object) protected abstract voidregisterSubjectIndicator(LocatorIF subject_indicator, TopicIF object) protected voidunregisterObject(TMObjectIF object) INTERNAL: Unregister the object with the identity map.protected abstract voidunregisterSourceLocator(LocatorIF source_locator) protected abstract voidunregisterSubject(LocatorIF subject) protected abstract voidunregisterSubjectIndicator(LocatorIF subject_indicator)
-
Field Details
-
handlers
-
-
Constructor Details
-
AbstractSubjectIdentityCache
-
-
Method Details
-
registerListeners
INTERNAL: Registers the subject identity cache listeners with the default event manager and the object tree event managers.- Parameters:
emanager- The default event manager.otree- The object tree manager.
-
getObjectById
-
getObjectByItemIdentifier
-
getTopicBySubjectLocator
-
getTopicBySubjectIdentifier
-
registerObject
INTERNAL: Register the object with the identity map. Does nothing by default. -
unregisterObject
INTERNAL: Unregister the object with the identity map. Does nothing by default. -
_getObjectByItemIdentifier
-
registerSourceLocator
-
unregisterSourceLocator
-
_getTopicBySubjectIdentifier
-
registerSubjectIndicator
-
unregisterSubjectIndicator
-
_getTopicBySubjectLocator
-
registerSubject
-
unregisterSubject
-
processEvent
Description copied from interface:EventListenerIFINTERNAL: A method that receives notification when an event has been triggered.- Specified by:
processEventin interfaceEventListenerIF
-