Class ContainsFunction
java.lang.Object
org.jaxen.function.ContainsFunction
- All Implemented Interfaces:
Function
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns true if the string-value of the first item inargscontains string-value of the second item; false otherwise.static BooleanReturns true if the first string contains the second string; false otherwise.
-
Constructor Details
-
ContainsFunction
public ContainsFunction()Create a newContainsFunctionobject.
-
-
Method Details
-
call
Returns true if the string-value of the first item in
argscontains string-value of the second item; false otherwise. If necessary one or both items are converted to a string as if by the XPathstring()function.- Specified by:
callin interfaceFunction- Parameters:
context- the context at the point in the expression when the function is calledargs- a list containing exactly two items- Returns:
- the result of evaluating the function;
Boolean.TRUEorBoolean.FALSE - Throws:
FunctionCallException- ifargsdoes not have exactly two items
-