Versions Compared

Key

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

You can use the following API to get a tag value:

Code Block
languagetext
public Objectobject getTagValue(Object_ object, String tagName) throws Exception {
...
}


If the RuntimeObject is omitted, $context$ or self will be used as an object. The context object in the parametric is the constraint block object that owns the constraint, not the actual context of the diagram. The following example shows how to get a tag value without specifying a RuntimeObject in ALH API:

Code Block
languagetext
public Objectobject getTagValue(String tagName) throws Exception {
...
}



The following code fragment shows how to get tag values, e.g., max, through ALH API. See also Value access and references by tags.

...

Info
titleInformation

Alternatively, you can use ALH API through the fUML object syntax, with object.getValue(tagName). For example:

  • d.getTagValue(“uniform.max”);  // 10

...