Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can use the following API to specify a structural feature value:

Code Block
languagetext
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
languagetext
public static void setValue(String featureName, Object value) {
...
}


Info
titleInformation

Alternatively, you can use ALH API through the fUML object syntax, with object.setValue(featureName, value). For example:

  • value = object.setValue("speed", "10");

...