|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.profile.internal.ProfileManagerImpl
public class ProfileManagerImpl
Default ProfileManager implementation
| Field Summary | |
|---|---|
static ConfigurationKey |
KEY_DEFAULT_DIRECTORIES
The configuration key for the search directories. |
static ConfigurationKey |
KEY_DEFAULT_PROFILES
The configuration key for the default profiles. |
| Constructor Summary | |
|---|---|
ProfileManagerImpl()
Constructor - includes initialization of built-in default profiles. |
|
| Method Summary | |
|---|---|
void |
addSearchPathDirectory(java.lang.String path)
Add a new directory to the directory list. |
void |
addToDefaultProfiles(Profile p)
Add a profile to the default list. |
void |
applyConfiguration(ProfileConfiguration pc)
Apply the given ProfileConfiguration to ArgoUML |
java.util.List<Profile> |
getDefaultProfiles()
|
Profile |
getProfileForClass(java.lang.String profileClass)
Search for a Profile with the given Java classname. |
java.util.List<Profile> |
getRegisteredProfiles()
|
java.util.List<java.lang.String> |
getSearchPathDirectories()
|
Profile |
getUMLProfile()
|
Profile |
lookForRegisteredProfile(java.lang.String value)
Looks for registered Profile |
void |
refreshRegisteredProfiles()
Look for XMI files at the current directory list and registers them as user defined profiles. |
void |
registerProfile(Profile p)
Register a new profile. |
void |
removeFromDefaultProfiles(Profile p)
Remove a profile from the default list. |
void |
removeProfile(Profile p)
Remove a profile from the list of registered profiles. |
void |
removeSearchPathDirectory(java.lang.String path)
Remove a directory from the directory list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ConfigurationKey KEY_DEFAULT_PROFILES
public static final ConfigurationKey KEY_DEFAULT_DIRECTORIES
| Constructor Detail |
|---|
public ProfileManagerImpl()
| Method Detail |
|---|
public java.util.List<Profile> getRegisteredProfiles()
getRegisteredProfiles in interface ProfileManagerpublic void registerProfile(Profile p)
ProfileManager
registerProfile in interface ProfileManagerp - A profile to be registered so that it is available to the
users.public void removeProfile(Profile p)
ProfileManager
removeProfile in interface ProfileManagerp - the profile to unregister. It will no longer be available
for selection by userspublic Profile getProfileForClass(java.lang.String profileClass)
ProfileManager
getProfileForClass in interface ProfileManagerprofileClass - the name of the Java class to search for.
public void addToDefaultProfiles(Profile p)
ProfileManager
addToDefaultProfiles in interface ProfileManagerp - profile to be added to the default application profiles.
New models will reference it by defaultpublic java.util.List<Profile> getDefaultProfiles()
getDefaultProfiles in interface ProfileManagerpublic void removeFromDefaultProfiles(Profile p)
ProfileManager
removeFromDefaultProfiles in interface ProfileManagerp - the profile to be removedpublic void addSearchPathDirectory(java.lang.String path)
ProfileManager
addSearchPathDirectory in interface ProfileManagerpath - a directory name where the manager will try to look for user
defined profiles as XMI filespublic java.util.List<java.lang.String> getSearchPathDirectories()
getSearchPathDirectories in interface ProfileManagerpublic void removeSearchPathDirectory(java.lang.String path)
ProfileManager
removeSearchPathDirectory in interface ProfileManagerpath - the directory path to be removed.public void refreshRegisteredProfiles()
ProfileManager
refreshRegisteredProfiles in interface ProfileManagerpublic Profile getUMLProfile()
getUMLProfile in interface ProfileManagerpublic Profile lookForRegisteredProfile(java.lang.String value)
ProfileManager
lookForRegisteredProfile in interface ProfileManagervalue - identifier
public void applyConfiguration(ProfileConfiguration pc)
ProfileManager
applyConfiguration in interface ProfileManagerpc - the profile configuration
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |