Configuration

The Configuration tab has the following fields.

Field

Description

Name

The name to appear as the label for the resource.

Description

Short description of the shared resource.

The method signature plus the description supplied in this field appear as the documentation of the function in the XPath editor. You can use simple HTML markup to format the text of this field, if you desire.

Suggested Prefix

A folder with the name you specify in this field appears in the Functions tab in the XPath editor. You can drag and drop methods from the loaded class into your XPath expression, just as you would with any standard XPath function.

Use this name as a prefix for function names in this class, if multiple classes are loaded and function names are not unique among the classes.

For example, if you have class1.method1 and class2.method1, you need to specify class1 in the Suggested Prefix field when you load class1 into a Java Custom Resource. You would specify class2 in the Suggested Prefix field when loading class2. When using method1 in XPath expressions, you must qualify which method1 you are using by specifying class1:method1 or class2:method1 in the XPath expression.

The value of this field must be unique across all loaded Java Custom Function resources, and the value must be a valid XPath identifier. Also, you cannot use global variables (that is, %variable%) in this field.

Class Location

The location of the class file you want to load. Use the Browse button to locate the class file.

Note: This field is used to locate the file initially, but the file is actually loaded and stored in the repository. Once the file is loaded, it can be removed from its original location in the file system. If you want to change the file stored in the repository, you can use this field to reload a changed file or load a new file for this resource.

Class Data

The size of the class in bytes. Use the Load button after a class is selected in the Class Location field to load the class and determine its size.