|
FUNCTION item_in_context (item : representation_item, cntxt : representation_context) : BOOLEAN; LOCAL y : BAG OF representation_item ; END_LOCAL ; IF SIZEOF ( USEDIN ( item , 'representation_schema.representation.items' ) * cntxt . representations_in_context ) > 0 THEN RETURN ( TRUE ) ; ELSE y := QUERY ( z <* USEDIN ( item , '' ) | 'representation_schema.representation_item' IN TYPEOF ( z ) ) ; IF SIZEOF ( y ) > 0 THEN REPEAT i := 1 TO HIINDEX ( y ) ; IF item_in_context ( y [ i ] , cntxt ) THEN RETURN ( TRUE ) ; END_IF ; END_REPEAT ; END_IF ; END_IF ; RETURN ( FALSE ) ; END_FUNCTION; -- item_in_context |
|
public class FItem_in_context public static Value run(SdaiContext _context, Value item, Value cntxt) |