Get Java Elements

This tool returns a file descriptor pointing to a file containing all the dependent Java and optional non Java resources of a Java resource or an Eclipse project.

By default, the tool returns all Java resources under the same match name JAVA_ELEMENT. The tool optionally enables you to specify specific match names for different Java resource types. The following Java resource types can be returned:

The tool can optionally return dependent non Java resources. By default, non Java resources are returned under the match name NON_JAVA_RESOURCE. The tool enables you to specify specific match names for different non Java resource types. The following non Java resource types can be returned:

This tool supports complex scenarios where it is necessary to distinguish different Java resource types in order to associate different properties and/or actions to different Java resource types.

Tool Attributes:

Attribute Type Description
Java Element Type Distinction Boolean Specifies whether different match names should be returned by the tool for Java resources. If set to false, the tool returns an identical match name for all Java resource types. If set to true, the match names for Java resource types can be individually specified.

The default value is false.

Return Non Java Resources Boolean Specifies whether the tool should return dependent non Java resources in addition to the dependent Java resources.

The default value is true.

Matchname String Specifies the match name that should be used for returned Java resources. This is only visible if Java Element Type Distinction attribute or at least one of the specific match name request fields is set to false.

The default value is JAVA_ELEMENT.

Distinguish Java Class File Boolean Specifies whether a specific match name should be returned for Java class files. This is only visible if Java Element Type Distinction is set to true.

The default value is false.

Distinguish Java Compilation Unit Boolean Specifies whether a specific match name should be returned for Java compilation units. This is only visible if Java Element Type Distinction is set to true.

The default value is false.

Distinguish Java Field Boolean Specifies whether a specific match name should be returned for Java fields. This is only visible if Java Element Type Distinction is set to true.

The default value is false.

Distinguish Java Method Boolean Specifies whether a specific match name should be returned for Java methods. This is only visible if Java Element Type Distinction is set to true.

The default value is false.

Distinguish Java Package Boolean Specifies whether a specific match name should be returned for Java packages. This is only visible if Java Element Type Distinction is set to true.

The default value is false.

Distinguish Java Type Boolean Specifies whether a specific match name should be returned for Java types. This is only visible if Java Element Type Distinction is set to true.

The default value is false.

Distinguish Java Source Container Boolean Specifies whether a specific match name should be returned for the Java source folder. This is only visible if Java Element Type Distinction is set to true.

The default value is false.

Matchname Eclipse File String Specifies the match name to be returned for Eclipse files. This is only visible if Return Non Java Resources is set to true.

The default value is NON_JAVA_RESOURCE.

Matchname Jar Entry File String Specifies the match name to be returned for Jar entry files. This is only visible if Return Non Java Resources is set to true.

The default value is NON_JAVA_RESOURCE.

Matchname Jar Entry Folder String Specifies the match name to be returned for Jar entry folders. This is only visible if Return Non Java Resources is set to true.

The default value is NON_JAVA_RESOURCE.

Matchname Java Class File String Specifies the match name to be returned for Java class files. This is only visible if Distinguish Java Class File is set to true.

The default value is CLASS_FILE.

Matchname Java Compilation Unit String Specifies the match name to be returned for Java compilation units. This is only visible if Distinguish Java Compilation Unit is set to true.

The default value is COMPILATION_UNIT.

Matchname Java Field String Specifies the match name to be returned for Java fields. This is only visible if Distinguish Java Field is set to true.

The default value is JAVA_FIELD.

Matchname Java Method String Specifies the match name to be returned for Java methods. This is only visible if Distinguish Java Method is set to true.

The default value is JAVA_METHOD.

Matchname Java Package String Specifies the match name to be returned for Java packages. This is only visible if Distinguish Java Package is set to true.

The default value is JAVA_PACKAGE.

Matchname Java Type String Specifies the match name to be returned for Java types. This is only visible if Distinguish Java Type is set to true.

The default value is JAVA_TYPE.

Matchname Java Source Container String Specifies the match name to be returned for the Java source container. This is only visible if Distinguish Java Source Container is set to true.

The default value is SOURCE_CONTAINER.

Parameters:

Parameter Name I/O Type Description
Java Element ID [M] I String Specifies the Java element ID or Eclipse resource ID of the Java resource or Eclipse project respectively for which the dependent Java elements will be retrieved.
Java Elements [M] O File Specifies the file descriptor pointing to the result file containing the dependent Java elements.

The output file descriptor should be of type InputStream and have the following structure:

Label Target ID
Java Element ID [M] Java identifier of the retrieved resource.
Eclipse Resource ID [M] Eclipse resource identifier of the retrieved resource.
Element Type [M] Match name identifying the AWM element type.