org.argouml.model.uml
Class UmlHelper

java.lang.Object
  extended byorg.argouml.model.uml.UmlHelper

public class UmlHelper
extends java.lang.Object

Helper class for UML metamodel.

Since:
ARGO0.11.2

Field Summary
protected static org.apache.log4j.Logger cat
           
private static UmlHelper SINGLETON
          Singleton instance.
 
Constructor Summary
private UmlHelper()
          Don't allow instantiation.
 
Method Summary
protected  void addListenersToMBase(java.lang.Object mbase)
          Internal recursive worker to add UmlModelListener.
 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.
 ActivityGraphsHelper getActivityGraphs()
          Returns the package helper for the UML package BehavioralElements::ActivityGraphs.
 CollaborationsHelper getCollaborations()
          Returns the package helper for the UML package BehavioralElements::Collaborations.
 CommonBehaviorHelper getCommonBehavior()
          Returns the package helper for the UML package BehavioralElements::CommonBehavior.
 CoreHelper getCore()
          Returns the package helper for the UML package Foundation::Core.
 DataTypesHelper getDataTypes()
          Returns the package helper for the UML package Foundation::DataTypes.
 ExtensionMechanismsHelper getExtensionMechanisms()
          Returns the package helper for the UML package Foundation::ExtensionMechanisms.
static UmlHelper getHelper()
          Singleton instance access method.
 java.lang.Object getHelper(java.lang.Object base)
          Returns the correct helper on basis of the package of base
 ModelManagementHelper getModelManagement()
          Returns the package helper for the UML package ModelManagement.
 java.lang.Object getOwner(java.lang.Object handle)
          Returns the owner of some modelelement object.
 StateMachinesHelper getStateMachines()
          Returns the package helper for the UML package BehavioralElements::StateMachines.
 UseCasesHelper getUseCases()
          Returns the package helper for the UML package BehavioralElements::UseCases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cat

protected static org.apache.log4j.Logger cat

SINGLETON

private static UmlHelper SINGLETON
Singleton instance.

Constructor Detail

UmlHelper

private UmlHelper()
Don't allow instantiation.

Method Detail

addListenersToModel

public void addListenersToModel(java.lang.Object model)
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.


addListenersToMBase

protected void addListenersToMBase(java.lang.Object mbase)
Internal recursive worker to add UmlModelListener.


getHelper

public static UmlHelper getHelper()
Singleton instance access method.


getExtensionMechanisms

public ExtensionMechanismsHelper getExtensionMechanisms()
Returns the package helper for the UML package Foundation::ExtensionMechanisms.

Returns:
the ExtensionMechanisms helper instance.

getDataTypes

public DataTypesHelper getDataTypes()
Returns the package helper for the UML package Foundation::DataTypes.

Returns:
the DataTypes helper instance.

getCore

public CoreHelper getCore()
Returns the package helper for the UML package Foundation::Core.

Returns:
the Core helper instance.

getCommonBehavior

public CommonBehaviorHelper getCommonBehavior()
Returns the package helper for the UML package BehavioralElements::CommonBehavior.

Returns:
the CommonBehavior helper instance.

getUseCases

public UseCasesHelper getUseCases()
Returns the package helper for the UML package BehavioralElements::UseCases.

Returns:
the UseCases helper instance.

getStateMachines

public StateMachinesHelper getStateMachines()
Returns the package helper for the UML package BehavioralElements::StateMachines.

Returns:
the StateMachines helper instance.

getCollaborations

public CollaborationsHelper getCollaborations()
Returns the package helper for the UML package BehavioralElements::Collaborations.

Returns:
the Collaborations helper instance.

getActivityGraphs

public ActivityGraphsHelper getActivityGraphs()
Returns the package helper for the UML package BehavioralElements::ActivityGraphs.

Returns:
the ActivityGraphs helper instance.

getModelManagement

public ModelManagementHelper getModelManagement()
Returns the package helper for the UML package ModelManagement.

Returns:
the ModelManagement helper instance.

getHelper

public java.lang.Object getHelper(java.lang.Object base)
Returns the correct helper on basis of the package of base

Parameters:
base -
Returns:
Object the helper

getOwner

public java.lang.Object getOwner(java.lang.Object handle)
Returns the owner of some modelelement object. In most cases this will be the owning namespace but in some cases it will be null (the root model) or for instance the owning class with an attribute.

Parameters:
handle -
Returns:
Object

deleteCollection

public void deleteCollection(java.util.Collection col)
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.

Parameters:
col -


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