svn commit: r18696 - trunk/src/argouml-core-model/src/org/argouml/model/DataTypesFactory.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2010-08-28 02:26:39-0700
New Revision: 18696

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

Log:
Deprecate all methods that create a multiplicity object (such a thing does not exist in UML2)

Modified: trunk/src/argouml-core-model/src/org/argouml/model/DataTypesFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-model/src/org/argouml/model/DataTypesFactory.java?view=diff&pathrev=18696&r1=18695&r2=18696
==============================================================================
--- trunk/src/argouml-core-model/src/org/argouml/model/DataTypesFactory.java	(original)
+++ trunk/src/argouml-core-model/src/org/argouml/model/DataTypesFactory.java	2010-08-28 02:26:39-0700
@@ -154,22 +154,29 @@
      *            the special UML value 'unlimited'
      * @return an initialized UML Multiplicity instance.
      */
+    @Deprecated
     Object createMultiplicity(int lower, int upper);
 
     /**
-     * Create an initialized instance of a UML Multiplicity.
+     * Create an initialized instance of a UML Multiplicity (UML1.4 only).
      *
      * @param range a List containing the range
      * @return an initialized UML Multiplicity instance.
+     * @deprecated by Bob Tarling in 0.31.5 use
+     * CoreHelper.setMultiplicity(Object, Object);
      */
+    @Deprecated
     Object createMultiplicity(List range);
 
     /**
-     * Create an initialized instance of a UML Multiplicity.
+     * Create an initialized instance of a UML Multiplicity (UML1.4 only).
      *
      * @param str a String representing the multiplicity
      * @return an initialized UML Multiplicity instance.
+     * @deprecated by Bob Tarling in 0.31.5 use
+     * CoreHelper.setMultiplicity(Object, Object);
      */
+    @Deprecated
     Object createMultiplicity(String str);
     
     /**
@@ -183,7 +190,10 @@
      *                asterisk character (*) representing "unlimited". The
      *                string "*" is equivalent to "0..*".
      * @return MultiplicityRange A multiplicity range
+     * @deprecated by Bob Tarling in 0.31.5 use
+     * CoreHelper.setMultiplicity(Object, Object);
      */
+    @Deprecated
     public Object createMultiplicityRange(String str);
     
     /**
@@ -195,6 +205,9 @@
      * @param upper
      *            the upper bound of the range
      * @return MultiplictyRange A multiplicity range
+     * @deprecated by Bob Tarling in 0.31.5 use
+     * CoreHelper.setMultiplicity(Object, Object);
      */
+    @Deprecated
     public Object createMultiplicityRange(int lower, int upper);
 }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2652359

To unsubscribe from this discussion, e-mail: [[email protected]].
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.