getannotations
procedure getannotations(mo:Model, id:string, prefix:string, si:set of string, ann:array(string) of string)
procedure getannotations(mo:Model, id:string, prefix:string, lsa:list of string)
mo
|
A model reference
|
id
|
Symbol for which annotations are requested (an empty string will report global declarations)
|
prefix
|
Prefix filter: only annotations with a name starting by the specified prefix will be returned
|
si
|
Set receiving the annotation names
|
ann
|
Array receiving the annotation values (indiced by names)
|
lsa
|
List receiving the annotation names and values
|
public function getannot(mo:Model, symb:string, aname:string):string declarations l:list of string end-declarations getannotations(mo,symb,aname,l) if l.size>=2 and l(1)=aname then returned:=l(2) end-if end-function writeln("Value of first annotation 'my.annot' for entity 'x': ", getannot(mo,"x","my.annot")) writeln("Value of first global annotation 'my.annot': ", getannot(mo,"","my.annot"))
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.