| java.lang.Object org.andromda.core.namespace.BaseNamespaceComponent org.andromda.core.profile.Profile
Profile | public class Profile extends BaseNamespaceComponent (Code) | | Represents an AndroMDA profile applied to a model.
Profiles allow us to extend aspects of a model.
author: Chad Brandon |
Method Summary | |
public void | addElement(String name, String value) Adds a new element to this namespace registry. | public void | addElement(String namespace, String name, String value) Adds a namespace element for the given namespace with the given name and
value. | public String | get(String name) Gets the profile value (if one is available)
for the given name, otherwise returns name.
Parameters: name - the profile name to retrieve. | public void | initialize() Initializes this profile instance. | public static Profile | instance() Gets the shared instance of this class. | public void | refresh() Refreshes the profile instance. | public void | shutdown() Shuts down the shared instance and releases any used resources. |
addElement | public void addElement(String name, String value)(Code) | | Adds a new element to this namespace registry.
|
addElement | public void addElement(String namespace, String name, String value)(Code) | | Adds a namespace element for the given namespace with the given name and
value.
Parameters: namespace - the namespace for which to add the namespace element. Parameters: name - the element name. Parameters: value - the element value. |
get | public String get(String name)(Code) | | Gets the profile value (if one is available)
for the given name, otherwise returns name.
Parameters: name - the profile name to retrieve. the value. |
initialize | public void initialize()(Code) | | Initializes this profile instance.
|
instance | public static Profile instance()(Code) | | Gets the shared instance of this class.
the shared instance. |
refresh | public void refresh()(Code) | | Refreshes the profile instance.
|
shutdown | public void shutdown()(Code) | | Shuts down the shared instance and releases any used resources.
|
|
|