- Function GetAnnotationValues(AnnotationKey, Values)
GetAnnotationValues
The pocedure GetAnnotationValues
collects for all identifiers the annotation value for annotation AnnotationKey
.
GetAnnotationValues(
AnnotationKey, ! (input) string expression
Values ! (output) string parameter indexed over AllIdentifiers
)
Arguments
- AnnotationKey
A string expression that results in a valid annotation key
- Values
A string parameter that is indexed over
AllIdentifiers
Return Value
This procedure returns 1 upon success.
Example
Given the declaration:
StringParameter _sp_annot {
IndexDomain: IndexIdentifiers;
}
The code:
GetAnnotationValues(
AnnotationKey : "aimmsunit::TestSuite",
Values : _sp_annot);
display _sp_annot('chapterModel::sectionModelQuery::funcGetAnnotationValues::pr_testGetAnnotationValues');
Produces in the listing file:
_sp_annot('chapterModel::sectionModelQuery::funcGetAnnotationValues::pr_testGetAnnotationValues') := "modelQuery" ;
See also
The functions DeclaredSubset
and DomainIndex
.