com.novell.xml.xpath.functions
Class xpathSubstring
java.lang.Object
com.novell.xml.xpath.Function
com.novell.xml.xpath.functions.xpathSubstring
- public class xpathSubstring
- extends Function
This class implements the XPath substring(string,number,number?) built-in function
Constructor Summary |
xpathSubstring()
Construct an object for the substring() function |
xpathSubstring
public xpathSubstring()
- Construct an object for the substring() function
invoke
public ExpressionValue invoke(Object[] args)
throws XPathEvaluationException
- Perform substring() function
- Overrides:
invoke
in class Function
- Parameters:
args
- List of arguments.
The first argument is required and is the source string
The second argument is required and is the starting index
within the source string.
The third argument is optional and specifies the length of
the substring to return. If it is not passed, the length defaults
to the rest of the source string.
- Returns:
- The substring of the first argument starting at the second
argument, with length specified by the third argument.
- Throws:
XPathEvaluationException
toString
public String toString()
- Return function name.
- Returns:
- Function name.