com.novell.xml.xpath.functions
Class xpathCount

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

public class xpathCount
extends Function

This class implements the XPath count() built-in function


Constructor Summary
xpathCount()
          Construct an object for the count() function
 
Method Summary
 ExpressionValue invoke(Object[] args)
          Perform count() 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

xpathCount

public xpathCount()
Construct an object for the count() function

Method Detail

invoke

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

Overrides:
invoke in class Function
Parameters:
args - List of arguments. Must be NodeSet
Returns:
A number indicating the number of nodes in the passed node-set
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.