|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.kernel.AbstractProjectMember
org.argouml.kernel.ProfileConfiguration
public class ProfileConfiguration
This class captures represents the unique access point for the configurability allowed by the use of profiles.
| Field Summary | |
|---|---|
static java.lang.String |
EXTENSION
The extension used in serialization and returned by getType() |
static ConfigurationKey |
KEY_DEFAULT_STEREOTYPE_VIEW
The configuration key for the default stereotype view. |
| Constructor Summary | |
|---|---|
ProfileConfiguration(Project project)
The default constructor for this class. |
|
ProfileConfiguration(Project project,
java.util.Collection<Profile> configuredProfiles)
The constructor for pre-defined profile configurations, such as when a project is read from a saved file. |
|
| Method Summary | |
|---|---|
void |
activateDefaultTypeStrategy(Profile profile)
Updates the current strategy to the strategy provided by the passed profile. |
void |
activateFormatingStrategy(Profile profile)
Updates the current strategy to the strategy provided by the passed profile. |
void |
addProfile(Profile p)
Deprecated. for 0.29.2, because since UML2 a profile must be applied to a model |
void |
addProfile(Profile p,
java.lang.Object m)
Applies a new profile to this configuration and to the given model (or other profile, which could be later a collection). |
java.util.Collection |
findAllStereotypesForModelElement(java.lang.Object modelElement)
|
java.util.Collection |
findByMetaType(java.lang.Object metaType)
Find all the model elements in the configured Profiles
of the given meta type. |
java.lang.Object |
findStereotypeForObject(java.lang.String name,
java.lang.Object element)
Find a stereotype with the given name which is applicable to the given element. |
java.lang.Object |
findType(java.lang.String name)
Search for the given type in all of the profile models. |
static java.lang.Object |
findTypeInModel(java.lang.String s,
java.lang.Object model)
Finds a type in a model by name FIXME: duplicated from the method with the same name in org.argouml.profile.internal.ModelUtils. |
DefaultTypeStrategy |
getDefaultTypeStrategy()
|
FigNodeStrategy |
getFigNodeStrategy()
|
FormatingStrategy |
getFormatingStrategy()
|
java.util.List<Profile> |
getProfiles()
|
java.lang.String |
getType()
Used by "argo.tee". |
void |
removeProfile(Profile p)
Deprecated. for 0.29.2, because since UML2 a profile must be unapplied from a model |
void |
removeProfile(Profile p,
java.lang.Object m)
Removes the passed profile from the configuration and unapplies it from the given model (or other profile, which could be later a collection). |
java.lang.String |
repair()
Objects of this class are always consistent, there's no need to repair them. |
java.lang.String |
toString()
|
| Methods inherited from class org.argouml.kernel.AbstractProjectMember |
|---|
getUniqueDiagramName, getZipFileExtension, getZipName, makeUniqueName, remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EXTENSION
getType()
public static final ConfigurationKey KEY_DEFAULT_STEREOTYPE_VIEW
| Constructor Detail |
|---|
public ProfileConfiguration(Project project)
ProfileManager as the profiles of
the project.
project - the project that contains this configuration
public ProfileConfiguration(Project project,
java.util.Collection<Profile> configuredProfiles)
project - the project that contains this configurationconfiguredProfiles - the Profiles that will be the project
profiles| Method Detail |
|---|
public FormatingStrategy getFormatingStrategy()
public DefaultTypeStrategy getDefaultTypeStrategy()
public void activateDefaultTypeStrategy(Profile profile)
profile - the profile providing the current default type strategypublic void activateFormatingStrategy(Profile profile)
profile - the profile providing the current formating strategypublic java.util.List<Profile> getProfiles()
@Deprecated public void addProfile(Profile p)
p - the profile to be applied
public void addProfile(Profile p,
java.lang.Object m)
p - the profile to be appliedm - the model (or profile) to which the profile will be applied@Deprecated public void removeProfile(Profile p)
p - the profile to be applied
public void removeProfile(Profile p,
java.lang.Object m)
p - the profile to be removed/unappliedm - the model (or profile) to which the profile will be unappliedpublic FigNodeStrategy getFigNodeStrategy()
public java.lang.String getType()
AbstractProjectMember
getType in interface ProjectMembergetType in class AbstractProjectMemberAbstractProjectMember.getType()public java.lang.String repair()
ProjectMember.repair()public java.lang.String toString()
toString in class AbstractProjectMemberObject.toString()
public java.lang.Object findStereotypeForObject(java.lang.String name,
java.lang.Object element)
name - name of stereotype to look forelement - model element to which the stereotype must be applicable
public java.lang.Object findType(java.lang.String name)
name - name of type to be found
public static java.lang.Object findTypeInModel(java.lang.String s,
java.lang.Object model)
s - the type namemodel - the model
null if the type has not been found.public java.util.Collection findByMetaType(java.lang.Object metaType)
Profiles
of the given meta type.
metaType - the meta type of the model elements to find
Collection containing the model elements that
are of the given meta typepublic java.util.Collection findAllStereotypesForModelElement(java.lang.Object modelElement)
modelElement - ModelElement for which find possible stereotypes
|
||||||||||
| 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 |