net.ontopia.topicmaps.impl.utils
Class TopicModificationManager

java.lang.Object
  extended by 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
protected  class TopicModificationManager.EventHandler
           
 
Field Summary
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
TopicModificationManager(EventManagerIF emanager, CollectionFactoryIF cfactory)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface EventManagerIF

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 interface EventManagerIF

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 interface EventListenerIF


Copyright © 2000-2012 Ontopia.