Skip navigation links

Oracle Fusion Middleware XPath Extension Function Java API Reference
11g Release 1 (11.1.1.4.0)

E10695-03


oracle.fabric.common.xml.xpath
Interface IXPathFunction


public interface IXPathFunction

Interface for implementing custom xpath function in SOA components.

Implementations of Function are functions which are used to evaluate a function-call within an XPath expression.

Lets say we want to implement a custom xpath function which gets a value of w3c node, the function name is getNodeValue(arg1) XPath function. Here is the code, which implements this function:

 package com.collaxa.cube.xml.xpath.functions.xml;
 public class GetNodeValue implements IXPathFunction  
 {
 
   Object call(IXPathContext context, List args) throws XPathFunctionException 
   {
       org.w3c.dom.Node node = (org.w3c.dom.Node) args.get(0);
       return node.getNodeValue()
    }
 }
 

Method Summary
 java.lang.Object call(IXPathContext context, java.util.List args)
          Call this XPath function.

 

Method Detail

call

java.lang.Object call(IXPathContext context,
                      java.util.List args)
                      throws XPathFunctionException
Call this XPath function.
Parameters:
context - The context at the point in the expression when the function is called.
args - List of arguments provided during the call of the function.
Returns:
The result of the XPath function.
Throws:
XPathFunctionException

Skip navigation links

Oracle Fusion Middleware XPath Extension Function Java API Reference
11g Release 1 (11.1.1.4.0)

E10695-03


Copyright © 2009, 2011, Oracle. All rights reserved.