Database Reference
In-Depth Information
Custom XPath function class
Any method in a custom class can be used as an XPath function with the following
limitations:
• The method must be a static class method.
• All parameters for the method must be of a simple type.
• The return type can be void or any other simple type. The class must im-
plement the IXPathFunction interface.
Create a new Java class in a JDeveloper project. Also select the main() method
which we would use to test the class.
In the Java class, implement the call method of the IXPathFunction interface.
Also add the code in the main() method for testing. The following is the example
code:
Search WWH ::




Custom Search