toolbox.oracle.xpath.ext
Class ConcatTextNodesXPathImpl

java.lang.Object
  extended by toolbox.oracle.xpath.ext.ConcatTextNodesXPathImpl
All Implemented Interfaces:
oracle.fabric.common.xml.xpath.IXPathFunction

public class ConcatTextNodesXPathImpl
extends java.lang.Object
implements oracle.fabric.common.xml.xpath.IXPathFunction

XPath function implementation that concatenates the contents of all text() nodes in a given XML tree.

Author:
Hannes Holtzhausen

Constructor Summary
ConcatTextNodesXPathImpl()
          Default constructor.
 
Method Summary
 java.lang.Object call(oracle.fabric.common.xml.xpath.IXPathContext context, java.util.List args)
          Concatenates the contents of all text() nodes in the given XML tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcatTextNodesXPathImpl

public ConcatTextNodesXPathImpl()
Default constructor.

Method Detail

call

public java.lang.Object call(oracle.fabric.common.xml.xpath.IXPathContext context,
                             java.util.List args)
                      throws oracle.fabric.common.xml.xpath.XPathFunctionException
Concatenates the contents of all text() nodes in the given XML tree.

Specified by:
call in interface oracle.fabric.common.xml.xpath.IXPathFunction
Parameters:
context - The context at the point in the expression when the function is called.
args - The list of arguments. In this instance a single Node.
Returns:
Object containing the concatenated string.
Throws:
oracle.fabric.common.xml.xpath.XPathFunctionException