com.novell.xml.xpath.functions
Class xpathContains

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

public class xpathContains
extends Function

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


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

xpathContains

public xpathContains()
Construct an object for the contains() function

Method Detail

invoke

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

Overrides:
invoke in class Function
Parameters:
args - List of arguments. Two string arguments are required. true is returned if the first argument contains the second argument
Returns:
true or false
Throws:
XPathEvaluationException

toString

public String toString()
Return function name.

Returns:
Function name.