net.ontopia.topicmaps.impl.utils
Class TopicModificationManager

java.lang.Object
  extended by net.ontopia.topicmaps.impl.utils.TopicModificationManager
All Implemented Interfaces:
java.io.Serializable, EventListenerIF, EventManagerIF

public class TopicModificationManager
extends java.lang.Object
implements EventManagerIF, java.io.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  java.util.Map<java.lang.String,TopicModificationManager.EventHandler> handlers
           
protected  java.util.Map<java.lang.String,java.util.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, java.lang.String event)
          INTERNAL: Register the listener as a listener for the event.
 void processEvent(java.lang.Object object, java.lang.String event, java.lang.Object new_value, java.lang.Object old_value)
          INTERNAL: A method that receives notification when an event has been triggered.
 void removeListener(EventListenerIF listener, java.lang.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 java.util.Map<java.lang.String,TopicModificationManager.EventHandler> handlers

listeners

protected java.util.Map<java.lang.String,java.util.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,
                        java.lang.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,
                           java.lang.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(java.lang.Object object,
                         java.lang.String event,
                         java.lang.Object new_value,
                         java.lang.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.