This tool returns the children of an Eclipse resource via a file descriptor. The returned children can be filtered by an optional input parameter.
Parameter # | I/O | Type | Description |
---|---|---|---|
1 [M] | I | String | The Eclipse resource ID. |
2 [O] | I | String | A Regular expression to filter the returned children. The default value is .*. |
3 [M] | O | File | A file descriptor pointing to the result file containing the returned children of the given Eclipse resource. |
The output file descriptor should be of type InputStream and have the following structure:
No | Target ID |
---|---|
1 [M] | The Eclipse path of the child resource. |
2 [M] | The match name used to identify the AWM element type. |
Using the attributes Folder Matchname and File Matchname provides a flexible way of associating Eclipse resources to modeled element types. If you want to associate Eclipse files to different AWM element types with only one Get Resource Children tool, you must use a relationship Custom Match Name to map file suffixes to match names.
If an Eclipse folder contains COBOL and PL/I files and the AWM model contains different element types for COBOL and PL/I programs. In this scenario it is not sufficient to use the attributes Folder Matchname and File Matchname; it is necessary to define the Custom Match Name relationship as described below.