org.argouml.model.uml
Class UmlModelListener

java.lang.Object
  extended byorg.argouml.model.uml.UmlModelListener
All Implemented Interfaces:
java.util.EventListener, ru.novosoft.uml.MElementListener

public class UmlModelListener
extends java.lang.Object
implements ru.novosoft.uml.MElementListener

A single listener that converts MElementEvents into Argo events.

Since:
ARGO0.11.2

Field Summary
private  org.apache.log4j.Logger _logger
          Log4j logging category.
private static UmlModelListener SINGLETON
          Singleton instance.
 
Constructor Summary
private UmlModelListener()
          Don't allow instantiation.
 
Method Summary
static UmlModelListener getInstance()
          Singleton instance access method.
 void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
          Handle the event.
protected  void notifyModelChanged(ru.novosoft.uml.MElementEvent mee)
          Common model change notification process.
 void propertySet(ru.novosoft.uml.MElementEvent mee)
          Handle the event.
 void recovered(ru.novosoft.uml.MElementEvent mee)
          Handle the event.
 void removed(ru.novosoft.uml.MElementEvent mee)
          Handle the event.
 void roleAdded(ru.novosoft.uml.MElementEvent mee)
          Handle the event.
 void roleRemoved(ru.novosoft.uml.MElementEvent mee)
          Handle the event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

private org.apache.log4j.Logger _logger
Log4j logging category.


SINGLETON

private static UmlModelListener SINGLETON
Singleton instance.

Constructor Detail

UmlModelListener

private UmlModelListener()
Don't allow instantiation. Create the logger.

Method Detail

getInstance

public static UmlModelListener getInstance()
Singleton instance access method.

Returns:
the singleton instance.

listRoleItemSet

public void listRoleItemSet(ru.novosoft.uml.MElementEvent mee)
Handle the event.

Specified by:
listRoleItemSet in interface ru.novosoft.uml.MElementListener

propertySet

public void propertySet(ru.novosoft.uml.MElementEvent mee)
Handle the event. Provides a model change notification only if the property values differ.

Specified by:
propertySet in interface ru.novosoft.uml.MElementListener

recovered

public void recovered(ru.novosoft.uml.MElementEvent mee)
Handle the event.

Specified by:
recovered in interface ru.novosoft.uml.MElementListener

removed

public void removed(ru.novosoft.uml.MElementEvent mee)
Handle the event.

Specified by:
removed in interface ru.novosoft.uml.MElementListener

roleAdded

public void roleAdded(ru.novosoft.uml.MElementEvent mee)
Handle the event. Provides a model change notification.

Specified by:
roleAdded in interface ru.novosoft.uml.MElementListener

roleRemoved

public void roleRemoved(ru.novosoft.uml.MElementEvent mee)
Handle the event. Provides a model change notification.

Specified by:
roleRemoved in interface ru.novosoft.uml.MElementListener

notifyModelChanged

protected void notifyModelChanged(ru.novosoft.uml.MElementEvent mee)
Common model change notification process.



ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook