com.novell.xml.xpath.functions
Class xpathStringLength

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

public class xpathStringLength
extends Function

This class implements the XPath string-length(string?) built-in function


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

xpathStringLength

public xpathStringLength()
Construct an object for the string-length() function

Method Detail

invoke

public ExpressionValue invoke(Object[] args)
                       throws XPathEvaluationException
Perform string-length() function

Overrides:
invoke in class Function
Parameters:
args - List of arguments. The argument is optional. If specified, it must resolve to string type. If the argument is unspecified, the value of the context node is used as the argument.
Returns:
The length of the argument in characters.
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.