org.argouml.profile
Class CoreProfileReference

java.lang.Object
  extended by org.argouml.profile.ProfileReference
      extended by org.argouml.profile.CoreProfileReference

public class CoreProfileReference
extends ProfileReference

This class provides the base referencing and URL for ArgoUML core profiles.


Constructor Summary
CoreProfileReference(java.lang.String fileName)
          Constructor, which builds a ProfileReference for ArgoUML core profiles by: prefixing the fileName with PROFILES_RESOURCE_PATH and using this as the path; and prefixing the fileName with PROFILES_BASE_URL and using this as the publicReference.
 
Method Summary
static void setProfileDirectory(java.lang.String dir)
          Sets the directory name where the profiles can be found.
 
Methods inherited from class org.argouml.profile.ProfileReference
getPath, getPublicReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoreProfileReference

public CoreProfileReference(java.lang.String fileName)
                     throws java.net.MalformedURLException
Constructor, which builds a ProfileReference for ArgoUML core profiles by:
  • prefixing the fileName with PROFILES_RESOURCE_PATH and using this as the path;
  • and prefixing the fileName with PROFILES_BASE_URL and using this as the publicReference.
  • Parameters:
    fileName - the profile file name.
    Throws:
    java.net.MalformedURLException - if the built URL is incorrect.
    Method Detail

    setProfileDirectory

    public static void setProfileDirectory(java.lang.String dir)
    Sets the directory name where the profiles can be found. Initially, 'uml14' is used. TODO: Intermediate solution for UML 2.x support, please implement a better solution.

    Parameters:
    dir - Name of the directory for the profiles


    ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook