|
||||||||||
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 ProfileManager
public void registerProfile(Profile p)
ProfileManager
registerProfile
in interface ProfileManager
p
- A profile to be registered so that it is available to the
users.public void removeProfile(Profile p)
ProfileManager
removeProfile
in interface ProfileManager
p
- the profile to unregister. It will no longer be available
for selection by userspublic Profile getProfileForClass(java.lang.String profileClass)
ProfileManager
getProfileForClass
in interface ProfileManager
profileClass
- the name of the Java class to search for.
public void addToDefaultProfiles(Profile p)
ProfileManager
addToDefaultProfiles
in interface ProfileManager
p
- profile to be added to the default application profiles.
New models will reference it by defaultpublic java.util.List<Profile> getDefaultProfiles()
getDefaultProfiles
in interface ProfileManager
public void removeFromDefaultProfiles(Profile p)
ProfileManager
removeFromDefaultProfiles
in interface ProfileManager
p
- the profile to be removedpublic void addSearchPathDirectory(java.lang.String path)
ProfileManager
addSearchPathDirectory
in interface ProfileManager
path
- 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 ProfileManager
public void removeSearchPathDirectory(java.lang.String path)
ProfileManager
removeSearchPathDirectory
in interface ProfileManager
path
- the directory path to be removed.public void refreshRegisteredProfiles()
ProfileManager
refreshRegisteredProfiles
in interface ProfileManager
public Profile getUMLProfile()
getUMLProfile
in interface ProfileManager
public Profile lookForRegisteredProfile(java.lang.String value)
ProfileManager
lookForRegisteredProfile
in interface ProfileManager
value
- identifier
public void applyConfiguration(ProfileConfiguration pc)
ProfileManager
applyConfiguration
in interface ProfileManager
pc
- 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 |