com.novell.xml.xpath.functions
Class xpathSum

java.lang.Object
  extended bycom.novell.xml.xpath.Function
      extended bycom.novell.xml.xpath.functions.xpathSum

public class xpathSum
extends Function

This class implements the XPath sum(node-set) built-in function


Constructor Summary
xpathSum()
          Construct an object for the sum() function
 
Method Summary
 ExpressionValue invoke(Object[] args)
          Perform sum() function
 String toString()
          Return function name.
 
Methods inherited from class com.novell.xml.xpath.Function
getInstance, getSignature, isConstant, registerForReset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

xpathSum

public xpathSum()
Construct an object for the sum() function

Method Detail

invoke

public ExpressionValue invoke(Object[] args)
                       throws XPathEvaluationException
Perform sum() function

Overrides:
invoke in class Function
Parameters:
args - List of arguments. One argument of type nodeset
Returns:
The sum of all nodes in the node set, treated as numbers
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.