org.argouml.model.uml.modelmanagement
Class ModelManagementFactory

java.lang.Object
  extended byorg.argouml.model.uml.AbstractUmlModelFactory
      extended byorg.argouml.model.uml.modelmanagement.ModelManagementFactory

public class ModelManagementFactory
extends AbstractUmlModelFactory

Factory to create UML classes for the UML ModelManagement package.

Since:
ARGO0.11.2

Method Summary
 ru.novosoft.uml.model_management.MPackage buildPackage(java.lang.String name, java.lang.String uuid)
          Build an empty but initialized instance of a UML Package with a given name, and set it's UUID, if it doesn't exist.
 ru.novosoft.uml.model_management.MPackage copyPackage(ru.novosoft.uml.model_management.MPackage source, ru.novosoft.uml.foundation.core.MNamespace ns)
          Copies a package, but not any elements within it.
 ru.novosoft.uml.model_management.MElementImport createElementImport()
          Create an empty but initialized instance of a UML ElementImport.
 ru.novosoft.uml.model_management.MModel createModel()
          Create an empty but initialized instance of a UML Model.
 ru.novosoft.uml.model_management.MPackage createPackage()
          Create an empty but initialized instance of a UML Package.
 ru.novosoft.uml.model_management.MSubsystem createSubsystem()
          Create an empty but initialized instance of a UML Subsystem.
 void deleteElementImport(ru.novosoft.uml.model_management.MElementImport elem)
           
 void deleteModel(ru.novosoft.uml.model_management.MModel elem)
           
 void deletePackage(ru.novosoft.uml.model_management.MPackage elem)
           
 void deleteSubsystem(ru.novosoft.uml.model_management.MSubsystem elem)
           
 void doCopyPackage(ru.novosoft.uml.model_management.MPackage source, ru.novosoft.uml.model_management.MPackage target)
          Used by the copy functions.
static ModelManagementFactory getFactory()
          Singleton instance access method.
 
Methods inherited from class org.argouml.model.uml.AbstractUmlModelFactory
addListenersToModelElement, initialize, isGuiEnabled, setGuiEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static ModelManagementFactory getFactory()
Singleton instance access method.


createModel

public ru.novosoft.uml.model_management.MModel createModel()
Create an empty but initialized instance of a UML Model.

Returns:
an initialized UML Model instance.

createElementImport

public ru.novosoft.uml.model_management.MElementImport createElementImport()
Create an empty but initialized instance of a UML ElementImport.

Returns:
an initialized UML ElementImport instance.

createPackage

public ru.novosoft.uml.model_management.MPackage createPackage()
Create an empty but initialized instance of a UML Package.

Returns:
an initialized UML Package instance.

buildPackage

public ru.novosoft.uml.model_management.MPackage buildPackage(java.lang.String name,
                                                              java.lang.String uuid)
Build an empty but initialized instance of a UML Package with a given name, and set it's UUID, if it doesn't exist.

Parameters:
name -
uuid -
Returns:
an initialized UML Package instance.

createSubsystem

public ru.novosoft.uml.model_management.MSubsystem createSubsystem()
Create an empty but initialized instance of a UML Subsystem.

Returns:
an initialized UML Subsystem instance.

deleteElementImport

public void deleteElementImport(ru.novosoft.uml.model_management.MElementImport elem)

deleteModel

public void deleteModel(ru.novosoft.uml.model_management.MModel elem)

deletePackage

public void deletePackage(ru.novosoft.uml.model_management.MPackage elem)

deleteSubsystem

public void deleteSubsystem(ru.novosoft.uml.model_management.MSubsystem elem)

copyPackage

public ru.novosoft.uml.model_management.MPackage copyPackage(ru.novosoft.uml.model_management.MPackage source,
                                                             ru.novosoft.uml.foundation.core.MNamespace ns)
Copies a package, but not any elements within it. This does however not mean the package will be empty, since eg it or it's parents may reference a stereotype within it causing that to be copied into it.

Parameters:
source - is the package to copy.
ns - is the namespace to put the copy in.

doCopyPackage

public void doCopyPackage(ru.novosoft.uml.model_management.MPackage source,
                          ru.novosoft.uml.model_management.MPackage target)
Used by the copy functions. Do not call this function directly.



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