com.novell.xml.xpath.functions
Class xpathSubstringBefore

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

public class xpathSubstringBefore
extends Function

This class implements the XPath substring-before(string,string) built-in function


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

xpathSubstringBefore

public xpathSubstringBefore()
Construct an object for the substring-before() function

Method Detail

invoke

public ExpressionValue invoke(Object[] args)
                       throws XPathEvaluationException
Perform substring-before() function

Overrides:
invoke in class Function
Parameters:
args - List of arguments. Two string arguments are required.
Returns:
The substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string.
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.