|
FUNCTION acyclic_mapped_item_usage (rep : representation) : BOOLEAN; LOCAL items : SET OF representation_item ; END_LOCAL ; items := QUERY ( item <* rep . items | 'aic_draughting_annotation.mapped_item' IN TYPEOF ( item ) ) ; IF SIZEOF ( items ) = 0 THEN RETURN ( FALSE ) ; ELSE REPEAT i := 1 TO HIINDEX ( items ) ; IF items [ i ] \ mapped_item . mapping_source . mapped_representation :=: rep THEN RETURN ( TRUE ) ; ELSE RETURN ( acyclic_mapped_item_usage ( items [ i ] \ mapped_item . mapping_source . mapped_representation ) ) ; END_IF ; END_REPEAT ; RETURN ( FALSE ) ; END_IF ; END_FUNCTION; -- acyclic_mapped_item_usage |
|
public class FAcyclic_mapped_item_usage public static Value run(SdaiContext _context, Value rep) |