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 class
TopicModificationManager.EventHandler
-
Field Summary
Fields Modifier and Type Field Description protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.AssociationHandler
ah
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicNameHandler
bh
protected CollectionFactoryIF
cfactory
protected Map<String,TopicModificationManager.EventHandler>
handlers
protected Map<String,Set<EventListenerIF>>
listeners
protected TopicModificationManager
manager
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicMapHandler
mh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.OccurrenceHandler
oh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.AssociationRoleHandler
rh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicHandler
th
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.VariantNameHandler
vh
-
Constructor Summary
Constructors Constructor Description TopicModificationManager(EventManagerIF emanager, CollectionFactoryIF cfactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(EventListenerIF listener, String event)
INTERNAL: Register the listener as a listener for the event.void
processEvent(Object object, String event, Object new_value, Object old_value)
INTERNAL: A method that receives notification when an event has been triggered.void
removeListener(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:EventManagerIF
INTERNAL: Register the listener as a listener for the event.- Specified by:
addListener
in interfaceEventManagerIF
-
removeListener
public void removeListener(EventListenerIF listener, String event)
Description copied from interface:EventManagerIF
INTERNAL: Unregister the listener as a listener for the event.- Specified by:
removeListener
in interfaceEventManagerIF
-
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
-
-