org.argouml.model
Class AbstractUmlHelperDecorator

java.lang.Object
  extended by org.argouml.model.AbstractUmlHelperDecorator
All Implemented Interfaces:
UmlHelper
Direct Known Subclasses:
UndoUmlHelperDecorator

public abstract class AbstractUmlHelperDecorator
extends java.lang.Object
implements UmlHelper

An abstract Decorator for the UmlHelper.


Constructor Summary
AbstractUmlHelperDecorator(UmlHelper component)
           
 
Method Summary
 void addListenersToModel(java.lang.Object model)
          Ensures that all of the elements in a model are registered to the UmlModelListener.
 void deleteCollection(java.util.Collection col)
          Utility method to quickly delete a collection of modelelements.
 java.lang.Object getDestination(java.lang.Object relationship)
          Returns the destination of some relationship.
 java.lang.Object getSource(java.lang.Object relationship)
          Returns the source of some relationship.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUmlHelperDecorator

public AbstractUmlHelperDecorator(UmlHelper component)
Parameters:
component - The component to decorate.
Method Detail

addListenersToModel

public void addListenersToModel(java.lang.Object model)
Description copied from interface: UmlHelper
Ensures that all of the elements in a model are registered to the UmlModelListener. This is useful when the MModel is not created by the UmlFactory.

Specified by:
addListenersToModel in interface UmlHelper
Parameters:
model - the UML model

deleteCollection

public void deleteCollection(java.util.Collection col)
Description copied from interface: UmlHelper
Utility method to quickly delete a collection of modelelements. This method should only be called from within the model component. The only reason it is public is that the other helpers/factories are in other packages and therefore cannot see this method if it is not public.

Specified by:
deleteCollection in interface UmlHelper
Parameters:
col - a collection of modelelements

getSource

public java.lang.Object getSource(java.lang.Object relationship)
Description copied from interface: UmlHelper
Returns the source of some relationship. This is the element in binary relations from which a relation 'departs'.

Specified by:
getSource in interface UmlHelper
Parameters:
relationship - the relationship to be tested
Returns:
the source of the relationship

getDestination

public java.lang.Object getDestination(java.lang.Object relationship)
Description copied from interface: UmlHelper
Returns the destination of some relationship. This is the element in binary relations at which a relation 'arrives'.

Specified by:
getDestination in interface UmlHelper
Parameters:
relationship - the relationship to be tested
Returns:
the destination of the relationship


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook