org.argouml.model
Interface ModelManagementFactory

All Superinterfaces:
Factory

public interface ModelManagementFactory
extends Factory

The interface for the factory for ModelManagement.


Method Summary
 java.lang.Object buildElementImport(java.lang.Object pack, java.lang.Object me)
          Build a ElementImport which imports the given modelelement into the given package.
 java.lang.Object buildPackage(java.lang.String name)
          Build an empty but initialized instance of a UML Package with a given name.
 java.lang.Object copyPackage(java.lang.Object source, java.lang.Object ns)
          Copies a package, but not any elements within it.
 java.lang.Object createElementImport()
          Create an empty but initialized instance of a UML ElementImport.
 java.lang.Object createModel()
          Create an empty but initialized instance of a UML Model.
 java.lang.Object createPackage()
          Create an empty but initialized instance of a UML Package.
 java.lang.Object createProfile()
          Create an empty but initialized instance of a Profile.
 java.lang.Object createSubsystem()
          Create an empty but initialized instance of a UML Subsystem.
 java.lang.Object getRootModel()
          Deprecated. for 0.25.4 by tfmorris. Use Facade.getRootElements() for now, but that may need enhancement/change to accommodate multiple projects.
 void setRootModel(java.lang.Object rootModel)
          Deprecated. for 0.25.4 by tfmorris. There may be multiple top level packages which make up the model and the model subsystem also needs to be able to deal with more than one project at a time, so the concept of a single root model needs to be dropped.
 

Method Detail

createModel

java.lang.Object createModel()
Create an empty but initialized instance of a UML Model.

Returns:
an initialized UML Model instance.

setRootModel

@Deprecated
void setRootModel(java.lang.Object rootModel)
Deprecated. for 0.25.4 by tfmorris. There may be multiple top level packages which make up the model and the model subsystem also needs to be able to deal with more than one project at a time, so the concept of a single root model needs to be dropped.

Sets the root model of the project.

Parameters:
rootModel - the new root model.

getRootModel

@Deprecated
java.lang.Object getRootModel()
Deprecated. for 0.25.4 by tfmorris. Use Facade.getRootElements() for now, but that may need enhancement/change to accommodate multiple projects.

Gets the root model of the project.

Returns:
the current root model.

createElementImport

java.lang.Object createElementImport()
Create an empty but initialized instance of a UML ElementImport.

Returns:
an initialized UML ElementImport instance.

buildElementImport

java.lang.Object buildElementImport(java.lang.Object pack,
                                    java.lang.Object me)
Build a ElementImport which imports the given modelelement into the given package. The visibility, alias and isSpecification are not filled in.

Parameters:
pack - the package to import into
me - the model element to import
Returns:
the newly created ElementImport

createPackage

java.lang.Object createPackage()
Create an empty but initialized instance of a UML Package.

Returns:
an initialized UML Package instance.

createProfile

java.lang.Object createProfile()
Create an empty but initialized instance of a Profile.

Returns:
an initialized Profile instance.

buildPackage

java.lang.Object buildPackage(java.lang.String name)
Build an empty but initialized instance of a UML Package with a given name.

Parameters:
name - is the given name
Returns:
an initialized UML Package instance.

createSubsystem

java.lang.Object createSubsystem()
Create an empty but initialized instance of a UML Subsystem.

Returns:
an initialized UML Subsystem instance.

copyPackage

java.lang.Object copyPackage(java.lang.Object source,
                             java.lang.Object 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.
Returns:
the newly created package.


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook