org.argouml.kernel
Class ProjectFactory

java.lang.Object
  extended by org.argouml.kernel.ProjectFactory

public class ProjectFactory
extends java.lang.Object

Factory for creating new Project instances.

Consumers who need an instance of a Project should use this factory to get an instance which implements the Project interface. This allows us to decouple the specification from its implementation and break the dependency cycle that would otherwise exist between Projects and ArgoDiagrams.

Stereotype:
singleton

Method Summary
 Project createProject()
          Create a new empty project.
 Project createProject(java.net.URI uri)
          Create a project with the given URI as its location
static ProjectFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createProject

public Project createProject()
Create a new empty project.

Returns:
a new NOT initialised project

createProject

public Project createProject(java.net.URI uri)
Create a project with the given URI as its location

Parameters:
uri - the URI to use as the name/location of the project
Returns:
a newly created project

getInstance

public static ProjectFactory getInstance()


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook