public class TopicModificationManager extends Object implements EventManagerIF, Serializable
Modifier and Type | Class and Description |
---|---|
protected class |
TopicModificationManager.EventHandler |
Modifier and Type | Field and 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 and Description |
---|
TopicModificationManager(EventManagerIF emanager,
CollectionFactoryIF cfactory) |
Modifier and Type | Method and 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.
|
protected Map<String,TopicModificationManager.EventHandler> handlers
protected Map<String,Set<EventListenerIF>> listeners
protected TopicModificationManager manager
protected CollectionFactoryIF cfactory
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicHandler th
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicNameHandler bh
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.VariantNameHandler vh
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.AssociationHandler ah
protected net.ontopia.topicmaps.impl.utils.TopicModificationManager.TopicMapHandler mh
public TopicModificationManager(EventManagerIF emanager, CollectionFactoryIF cfactory)
public void addListener(EventListenerIF listener, String event)
EventManagerIF
addListener
in interface EventManagerIF
public void removeListener(EventListenerIF listener, String event)
EventManagerIF
removeListener
in interface EventManagerIF
public void processEvent(Object object, String event, Object new_value, Object old_value)
EventListenerIF
processEvent
in interface EventListenerIF