Author: bobtarling
Date: 2008-05-07 17:00:15-0700
New Revision: 14662

Modified:
   trunk/src/argouml-app/src/org/argouml/profile/Profile.java

Log:
Remove deprecated methods that have never made a stable release

Modified: trunk/src/argouml-app/src/org/argouml/profile/Profile.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/Profile.java?view=diff&rev=14662&p1=trunk/src/argouml-app/src/org/argouml/profile/Profile.java&p2=trunk/src/argouml-app/src/org/argouml/profile/Profile.java&r1=14661&r2=14662
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/Profile.java  (original)
+++ trunk/src/argouml-app/src/org/argouml/profile/Profile.java  2008-05-07 
17:00:15-0700
@@ -81,25 +81,6 @@
     public abstract String getDisplayName();
     
     /**
-     * @return the UML Model that contains the profile model
-     * @deprecated by maurelio1234. Use [EMAIL PROTECTED] 
#getProfilePackages()} instead.
-     */
-    @Deprecated
-    public Object getModel() {
-        Collection c = null;
-        try {
-            c = getProfilePackages();
-        } catch (ProfileException e) {
-        }
-        
-        if (c != null) {
-            return c.iterator().next();
-        } else {
-            return null;
-        }
-    }
-
-    /**
      * @return the formating strategy offered by this profile, if any. Returns
      *         <code>null</code> if this profile has no formating strategy.
      */
@@ -124,76 +105,6 @@
     }
     
     /**
-     * This method produces a string that represents the specific model element
-     * in the context of the specified namespace.
-     * 
-     * @param element
-     *                element to represent.
-     * @param namespace
-     *                context namespace (may be null).
-     * @return a string representing the model element
-     * 
-     * @deprecated for 0.25.4 by maurelio1234. Use
-     *             [EMAIL PROTECTED] #getFormatingStrategy()} instead.
-     */
-    @Deprecated
-    public String formatElement(Object element,
-                                         Object namespace) {
-        FormatingStrategy fs = getFormatingStrategy(); 
-        if (fs != null) {
-            return fs.formatElement(element, namespace);
-        } else {
-            return null;
-        }
-    }
-    
-    /**
-     * This method produces a string the represents the collection of model
-     * elements in the context of the specified namespace.
-     * 
-     * @param iter
-     *                iterator over collection
-     * @param namespace
-     *                context namespace (may be null).
-     * @return a string representing the collection
-     * 
-     * @deprecated for 0.25.4 by maurelio1234. Use
-     *             [EMAIL PROTECTED] #getFormatingStrategy()} instead.
-     */
-    @Deprecated
-    public String formatCollection(Iterator iter,
-                                            Object namespace) {
-        FormatingStrategy fs = getFormatingStrategy(); 
-        if (fs != null) {
-            return fs.formatCollection(iter, namespace);
-        } else {
-            return null;
-        }        
-    }
-    /**
-     * @return the UML Model that contains the profile model
-     * @throws ProfileException if failed to get profile.
-     * @deprecated for 0.25.4 by tfmorris.  Use [EMAIL PROTECTED] 
#getProfilePackages()}.
-     */
-    @Deprecated
-    public Object getProfileModel() throws ProfileException {
-        if (getModel() == null) {
-            Object profileModel = null;
-            for (Object pkg : getProfilePackages()) {
-                if (Model.getFacade().isAPackage(pkg)) {
-                    profileModel = pkg;
-                    return profileModel;
-                }
-            }
-            profileModel = getProfilePackages().iterator().next();
-
-            return profileModel;
-        } else {
-            return getModel();
-        }
-    }
-    
-    /**
      * @return a collection of the top level UML Packages containing the
      *         profile.
      * @throws ProfileException
@@ -202,32 +113,6 @@
     public abstract Collection getProfilePackages() throws ProfileException;
     
     /**
-     * Set the filename to load the profile model from.  This will be
-     * remembered and used as the file for all future loads.
-     * @param filename file name of XMI file containing model to use as profile
-     * 
-     * @throws ProfileException if the given file isn't a valid profile
-     * @deprecated by maurelio1234
-     */
-    @SuppressWarnings("unused")
-    @Deprecated
-    public void setProfileModelFilename(String filename)
-        throws ProfileException {
-        
-    }
-    
-    /**
-     * Return the filename that was or will be used to load the profile/default
-     * model.
-     * @return the filename
-     * @deprecated by maurelio1234
-     */
-    @Deprecated
-    public String getProfileModelFilename() {
-        return "";
-    }
-    
-    /**
      * @return the display name
      */
     @Override

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to