com.novell.xml.xpath.functions
Class xpathStringLength
java.lang.Object
com.novell.xml.xpath.Function
com.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 |
xpathStringLength
public xpathStringLength()
- Construct an object for the string-length() function
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.