svn commit: r14622 - trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-05-05 00:55:17-0700
New Revision: 14622

Modified:
   trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java

Log:
Issue 5072: deprecate buildPackage() method with UUID parameter

Modified: trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java?view=diff&rev=14622&p1=trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java&p2=trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java&r1=14621&r2=14622
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java	(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/ModelManagementFactory.java	2008-05-05 00:55:17-0700
@@ -84,16 +84,29 @@
     Object createPackage();
 
     /**
-     * Build an empty but initialized instance of a UML Package
-     * with a given name, and set it's UUID, if it doesn't exist.
-     *
+     * Build an empty but initialized instance of a UML Package with a given
+     * name, and set it's UUID, if it doesn't exist.
+     * 
      * @param name is the given name
      * @param uuid is the UUID.
      * @return an initialized UML Package instance.
+     * @deprecated for 0.25.4 by tfmorris. Current implementations ignore the
+     *             uuid parameter if null and will throw an exception if it's
+     *             non-null. Use single argument form
+     *             {@link #buildPackage(String)}.
      */
     Object buildPackage(String name, String uuid);
 
     /**
+     * Build an empty but initialized instance of a UML Package
+     * with a given name.
+     *
+     * @param name is the given name
+     * @return an initialized UML Package instance.
+     */
+    Object buildPackage(String name);
+    
+    /**
      * Create an empty but initialized instance of a UML Subsystem.
      *
      * @return an initialized UML Subsystem instance.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.