Package net.ontopia.topicmaps.impl.utils
Class TopicModificationManager
- java.lang.Object
-
- net.ontopia.topicmaps.impl.utils.TopicModificationManager
-
- All Implemented Interfaces:
Serializable,EventListenerIF,EventManagerIF
public class TopicModificationManager extends Object implements EventManagerIF, Serializable
INTERNAL: Event manager that fires TopicIF.modified events.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classTopicModificationManager.EventHandler
-
Field Summary
Fields Modifier and Type Field Description protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.AssociationHandlerahprotected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicNameHandlerbhprotected CollectionFactoryIFcfactoryprotected Map<String,TopicModificationManager.EventHandler>handlersprotected Map<String,Set<EventListenerIF>>listenersprotected TopicModificationManagermanagerprotected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicMapHandlermhprotected net.ontopia.topicmaps.impl.utils.TopicModificationManager.OccurrenceHandlerohprotected net.ontopia.topicmaps.impl.utils.TopicModificationManager.AssociationRoleHandlerrhprotected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicHandlerthprotected net.ontopia.topicmaps.impl.utils.TopicModificationManager.VariantNameHandlervh
-
Constructor Summary
Constructors Constructor Description TopicModificationManager(EventManagerIF emanager, CollectionFactoryIF cfactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(EventListenerIF listener, String event)INTERNAL: Register the listener as a listener for the event.voidprocessEvent(Object object, String event, Object new_value, Object old_value)INTERNAL: A method that receives notification when an event has been triggered.voidremoveListener(EventListenerIF listener, String event)INTERNAL: Unregister the listener as a listener for the event.
-
-
-
Field Detail
-
handlers
protected Map<String,TopicModificationManager.EventHandler> handlers
-
listeners
protected Map<String,Set<EventListenerIF>> listeners
-
manager
protected TopicModificationManager manager
-
cfactory
protected CollectionFactoryIF cfactory
-
th
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicHandler th
-
bh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicNameHandler bh
-
vh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.VariantNameHandler vh
-
oh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.OccurrenceHandler oh
-
rh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.AssociationRoleHandler rh
-
ah
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.AssociationHandler ah
-
mh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicMapHandler mh
-
-
Constructor Detail
-
TopicModificationManager
public TopicModificationManager(EventManagerIF emanager, CollectionFactoryIF cfactory)
-
-
Method Detail
-
addListener
public void addListener(EventListenerIF listener, String event)
Description copied from interface:EventManagerIFINTERNAL: Register the listener as a listener for the event.- Specified by:
addListenerin interfaceEventManagerIF
-
removeListener
public void removeListener(EventListenerIF listener, String event)
Description copied from interface:EventManagerIFINTERNAL: Unregister the listener as a listener for the event.- Specified by:
removeListenerin interfaceEventManagerIF
-
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
-
-