org.argouml.model.uml
Class AbstractUmlModelFactory

java.lang.Object
  |
  +--org.argouml.model.uml.AbstractUmlModelFactory
Direct Known Subclasses:
ActivityGraphsFactory, CollaborationsFactory, CommonBehaviorFactory, CoreFactory, DataTypesFactory, ExtensionMechanismsFactory, ModelManagementFactory, StateMachinesFactory, UmlFactory, UseCasesFactory

public abstract class AbstractUmlModelFactory
extends java.lang.Object

Abstract Class that every model package factory should implement to share the initialize() method.

Since:
ARGO0.11.2

Constructor Summary
protected AbstractUmlModelFactory()
          Default constructor.
 
Method Summary
 void addListenersToModelElement(java.lang.Object handle)
          Adds all interested (and centralized) listeners to the given modelelement handle.
protected  void initialize(java.lang.Object o)
          Initialized some new modelelement o
 boolean isGuiEnabled()
          Checks if the gui is enabled.
 void setGuiEnabled(boolean gui)
          Turns the flag for the gui on/off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractUmlModelFactory

protected AbstractUmlModelFactory()
Default constructor.

Method Detail

initialize

protected void initialize(java.lang.Object o)
Initialized some new modelelement o

Parameters:
o - The new modelelement

setGuiEnabled

public void setGuiEnabled(boolean gui)
Turns the flag for the gui on/off. Default the gui is on. Needed for test modus.

Parameters:
gui - flag to turn gui on off

isGuiEnabled

public boolean isGuiEnabled()
Checks if the gui is enabled.

Returns:
the gui flag

addListenersToModelElement

public void addListenersToModelElement(java.lang.Object handle)
Adds all interested (and centralized) listeners to the given modelelement handle.

Parameters:
handle - the modelelement the listeners are interested in


ArgoUML © 1996-2003 (20040229)ArgoUML Project HomeArgoUML Cookbook