|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.xtools.uml.rt.core.PropertyManager
public class PropertyManager
Helper class for working with an element's property sets.
| Constructor Summary | |
|---|---|
PropertyManager(Element element)
Creates a PropertyManager for this element. |
|
| Method Summary | |
|---|---|
void |
applyDefaults(java.lang.String language,
java.lang.String type,
java.lang.String group)
Restores the given property set (language, type, group) to its default values for this element. |
void |
changeValue(java.lang.String language,
java.lang.String type,
java.lang.String group,
java.lang.String property,
java.lang.Object newValue)
Changes the value of the property in the given group for the given type to the new value. |
java.lang.String |
getActiveLanguage()
|
java.lang.Package |
getDefaultModel()
Gets the default model for this element. |
java.lang.String[] |
getGroupNames(java.lang.String language,
java.lang.String type)
Returns the names of the groups that apply to the given element type in the language. |
java.lang.String[] |
getLanguages()
Returns the names of the languages of all the property set profiles that are available to this element. |
java.util.List<org.eclipse.uml2.uml.Property> |
getProperties(java.lang.String language,
java.lang.String type,
java.lang.String group)
Returns a list of the properties for the given type in the given group. |
java.lang.String[] |
getTypeNames(java.lang.String language)
Returns a list of all the type names that have property sets in the given language. |
java.lang.String[] |
getTypeNamesForElement(java.lang.String language)
Gets all the type names that apply to this element in the given language. |
java.lang.Object |
getValue(java.lang.String language,
java.lang.String type,
java.lang.String group,
java.lang.String property)
Returns the value of the given property in the given group for this element. |
boolean |
isOverridden(java.lang.String language,
java.lang.String type,
java.lang.String group)
Returns whether or not the properties in the given type/group combination have been overridden by this element. |
void |
setDefaultModel(URI newDefaultModelURI)
Sets the default model of this element to the root package found at the given URI. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyManager(Element element)
element - | Method Detail |
|---|
public java.lang.String getActiveLanguage()
public boolean isOverridden(java.lang.String language,
java.lang.String type,
java.lang.String group)
language - the name of the languagetype - the name of the typegroup - the name of the group
public java.lang.String[] getGroupNames(java.lang.String language,
java.lang.String type)
language - the name of the languagetype - the name of the element type
public java.lang.Package getDefaultModel()
public void setDefaultModel(URI newDefaultModelURI)
newDefaultModelURI - the URI of the default model, or null to clear the default model
public java.lang.Object getValue(java.lang.String language,
java.lang.String type,
java.lang.String group,
java.lang.String property)
language - the name of the languagetype - the name of the typegroup - the name of the groupproperty - the name of the property (not the display name)
public void changeValue(java.lang.String language,
java.lang.String type,
java.lang.String group,
java.lang.String property,
java.lang.Object newValue)
language - the name of the languagetype - the name of the typegroup - the name of the groupproperty - the name of the propertynewValue - the new value for the propertypublic java.lang.String[] getLanguages()
public void applyDefaults(java.lang.String language,
java.lang.String type,
java.lang.String group)
language - the name of the languagetype - the name of the typegroup - the name of the group
public java.util.List<org.eclipse.uml2.uml.Property> getProperties(java.lang.String language,
java.lang.String type,
java.lang.String group)
type - the name of the typegroup - the group name
public java.lang.String[] getTypeNames(java.lang.String language)
language - the name of the language
public java.lang.String[] getTypeNamesForElement(java.lang.String language)
language - the name of the language
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||