svn commit: r13238 - trunk/src/model/src/org/argouml/model

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-08-03 14:47:41-0700
New Revision: 13238

Modified:
   trunk/src/model/src/org/argouml/model/AbstractExtensionMechanismsHelperDecorator.java
   trunk/src/model/src/org/argouml/model/ExtensionMechanismsHelper.java

Log:
Fix capitalization of stereotype method names

Modified: trunk/src/model/src/org/argouml/model/AbstractExtensionMechanismsHelperDecorator.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model/src/org/argouml/model/AbstractExtensionMechanismsHelperDecorator.java?view=diff&rev=13238&p1=trunk/src/model/src/org/argouml/model/AbstractExtensionMechanismsHelperDecorator.java&p2=trunk/src/model/src/org/argouml/model/AbstractExtensionMechanismsHelperDecorator.java&r1=13237&r2=13238
==============================================================================
--- trunk/src/model/src/org/argouml/model/AbstractExtensionMechanismsHelperDecorator.java	(original)
+++ trunk/src/model/src/org/argouml/model/AbstractExtensionMechanismsHelperDecorator.java	2007-08-03 14:47:41-0700
@@ -80,9 +80,17 @@
         return impl.getAllPossibleStereotypes(models, modelElement);
     }
 
+    /**
+     * @deprecated Use {@link #isValidStereotype(Object,Object)} instead
+     */
     public boolean isValidStereoType(Object theModelElement,
             Object theStereotype) {
-        return impl.isValidStereoType(theModelElement, theStereotype);
+                return isValidStereotype(theModelElement, theStereotype);
+            }
+
+    public boolean isValidStereotype(Object theModelElement,
+            Object theStereotype) {
+        return impl.isValidStereotype(theModelElement, theStereotype);
     }
 
     public Collection getStereotypes(Collection models) {
@@ -142,8 +150,15 @@
         impl.setTaggedValue(handle, taggedValues);
     }
 
+    /**
+     * @deprecated Use {@link #hasStereotype(Object,String)} instead
+     */
     public boolean hasStereoType(Object handle, String name) {
-        return impl.hasStereoType(handle, name);
+        return hasStereotype(handle, name);
+    }
+
+    public boolean hasStereotype(Object handle, String name) {
+        return impl.hasStereotype(handle, name);
     }
 
 }

Modified: trunk/src/model/src/org/argouml/model/ExtensionMechanismsHelper.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/model/src/org/argouml/model/ExtensionMechanismsHelper.java?view=diff&rev=13238&p1=trunk/src/model/src/org/argouml/model/ExtensionMechanismsHelper.java&p2=trunk/src/model/src/org/argouml/model/ExtensionMechanismsHelper.java&r1=13237&r2=13238
==============================================================================
--- trunk/src/model/src/org/argouml/model/ExtensionMechanismsHelper.java	(original)
+++ trunk/src/model/src/org/argouml/model/ExtensionMechanismsHelper.java	2007-08-03 14:47:41-0700
@@ -97,10 +97,24 @@
      * @param theModelElement is the model element
      * @param theStereotype   is the stereotype
      * @return boolean
+     * @deprecated Use {@link #isValidStereotype(Object,Object)} instead
      */
     boolean isValidStereoType(Object theModelElement, Object theStereotype);
 
     /**
+     * Returns <code>true</code> if the given stereotype has a baseclass that
+     * equals the baseclass of the given ModelElement or one of the superclasses
+     * of the given ModelElement.
+     * 
+     * @param theModelElement
+     *                is the model element
+     * @param theStereotype
+     *                is the stereotype
+     * @return boolean
+     */
+    boolean isValidStereotype(Object theModelElement, Object theStereotype);
+
+    /**
      * Get all stereotypes from all Models in the list.
      *
      * Finds only stereotypes owned by the Model objects themselves.
@@ -233,6 +247,19 @@
      * @param handle the given object
      * @param name the given name
      * @return true if there is such a stereotype
+     * @deprecated for 0.25.4 by tfmorris.  Use {@link #hasStereotype(Object,String)} instead
      */
     boolean hasStereoType(Object handle, String name);
+
+    /**
+     * Returns <code>true</code> if the given ModelElement has a Stereotype with the
+     * given name.
+     * 
+     * @param element
+     *                the given element
+     * @param name
+     *                the given name
+     * @return true if there is such a stereotype
+     */
+    boolean hasStereotype(Object element, String name);
 }
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.