org.argouml.profile
Class Profile
java.lang.Object
org.argouml.profile.Profile
- Direct Known Subclasses:
- ProfileCodeGeneration, ProfileGoodPractices, ProfileMeta, ProfileUML, UserDefinedProfile
public abstract class Profile
- extends java.lang.Object
Abstract class representing a Profile. It contains default types and
presentation characteristics that can be tailored to various modeling
environments.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Profile
public Profile()
addProfileDependency
protected final void addProfileDependency(Profile p)
throws java.lang.IllegalArgumentException
- Add a dependency on the given profile from this profile.
- Parameters:
p - the profile
- Throws:
java.lang.IllegalArgumentException - never thrown
addProfileDependency
protected void addProfileDependency(java.lang.String profileIdentifier)
- Add a dependency on the given profile from this profile.
- Parameters:
profileIdentifier - the profile identifier
getDependencies
public final java.util.Set<Profile> getDependencies()
- Returns:
- the dependencies
getDependenciesID
public final java.util.Set<java.lang.String> getDependenciesID()
- Returns:
- the ids of the dependencies
getDisplayName
public abstract java.lang.String getDisplayName()
- Returns:
- the name for this profile
getFormatingStrategy
public FormatingStrategy getFormatingStrategy()
- Returns:
- the formating strategy offered by this profile, if any. Returns
null if this profile has no formating strategy.
getFigureStrategy
public FigNodeStrategy getFigureStrategy()
- Returns:
- the FigNodeStrategy offered by this profile, if any. Returns
null if this profile has no FigNodeStrategy.
getDefaultTypeStrategy
public DefaultTypeStrategy getDefaultTypeStrategy()
- Returns:
- the DefaultTypeStrategy offered by this profile, if any. Returns
null if this profile has no DefaultTypeStrategy.
getProfilePackages
public java.util.Collection getProfilePackages()
throws ProfileException
- Returns:
- a collection of the top level UML Packages containing the
profile.
- Throws:
ProfileException - if failed to get profile.
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- the display name
getCritics
public java.util.Set<Critic> getCritics()
- Returns:
- Returns the critics defined by this profile.
getProfileIdentifier
public java.lang.String getProfileIdentifier()
- Returns:
- a unique identifier for this profile
For technical reasons this identifier should not contain stars '*'
setCritics
protected void setCritics(java.util.Set<Critic> criticsSet)
- Parameters:
criticsSet - The critics to set.