|
FUNCTION representations_mapped_into (rep : representation) : SET [0:?] OF representation; LOCAL results : SET OF representation := [ ] ; rm : SET OF representation_map ; mi : SET OF mapped_item := [ ] ; END_LOCAL ; rm := bag_to_set ( USEDIN ( rep , 'representation_schema.' + 'representation_map.mapped_representation' ) ) ; REPEAT i := 1 TO HIINDEX ( rm ) ; mi := mi + rm [ i ] . map_usage ; END_REPEAT ; REPEAT j := 1 TO HIINDEX ( mi ) ; results := results + USEDIN ( mi [ j ] , 'representation_schema.' + 'representation.items' ) ; END_REPEAT ; RETURN ( results ) ; END_FUNCTION; -- representations_mapped_into |
|
public class FRepresentations_mapped_into public static Value run(SdaiContext _context, Value rep) |