org.argouml.model.uml
Class UmlModelListener

java.lang.Object
  |
  +--org.argouml.model.uml.UmlModelListener

public class UmlModelListener
extends java.lang.Object

A single listener that converts MElementEvents into Argo events.

Since:
ARGO0.11.2

Field Summary
private  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(MElementEvent mee)
          Handle the event.
protected  void notifyModelChanged(MElementEvent mee)
          Common model change notification process.
 void propertySet(MElementEvent mee)
          Handle the event.
 void recovered(MElementEvent mee)
          Handle the event.
 void removed(MElementEvent mee)
          Handle the event.
 void roleAdded(MElementEvent mee)
          Handle the event.
 void roleRemoved(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 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(MElementEvent mee)
Handle the event.


propertySet

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


recovered

public void recovered(MElementEvent mee)
Handle the event.


removed

public void removed(MElementEvent mee)
Handle the event.


roleAdded

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


roleRemoved

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


notifyModelChanged

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



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