namespaceName |
Required |
String |
The namespace in which the function is found.
It must be in the form of a valid uniform resource identifier (URI).
This namespace will be assigned a prefix in the function prefix library
area when the functions of this namespace are added to a monitor model. |
localName |
Required |
String |
The XPath name of the function. It does not
have to be the same or in any way related to the name of the Java
method implementing this function. It should be a valid NCName. Although
everything will work if you use an invalid NCName, it will not be
possible to call the function from within an expression. |
description |
Optional |
String |
The description of this method. This description
might be displayed by content assist. The default is "". |
descriptionKey |
Optional |
String |
Used to find a localized description of this
method. The format of this String is bundle.name/key_name.
The bundle is searched for with the standard Java bundle resolution
mechanism in the JAR in which this method is found, given the current
locale settings. If the bundle or key cannot be found, the description
is used. The description might be displayed by content assist. The
default is "". |
callingConvention |
Optional |
XPathFunction.CallingConvention |
Only the built-in JAXB bindings are supported. |
isDeterministic |
Required |
boolean |
True if the output of this function only depends
on its parameters. For example, add(1, 2) always
returns 3 so isDeterministic is true. However, random() returns
a different value for every call, so isDeterministic is false. Functions
marked with isDeterministic as true can be used to produce constant
expressions, allowing for additional validation. |
isSelfContained |
Required |
boolean |
True if the function does not use any external
resources that exist only in the target environment. Functions marked
with isSelfContained as true are called during validation if the parameters
can be determined, allowing for additional validation. If you have
a function that makes external connections to a database or server,
it should have isSelfContained set to false so that it is not called
during monitor model development. |