You can use the following API to specify a structural feature value:
| Code Block | ||
|---|---|---|
| ||
public static void setValue(StructuredValue object, String featureName, Object value) { ... } |
The following example shows how to specify the value of the structural feature in ALH API:
...
In addition, the RuntimeObject can be omitted. The following example shows how to set a structural feature value without specifying a RuntimeObject in ALH API:
| Code Block | ||
|---|---|---|
| ||
public static void setValue(String featureName, Object value) { ... } |
| Info | ||
|---|---|---|
| ||
Alternatively, you can use ALH API through the fUML object syntax, with object.setValue(featureName, value). For example:
|
...