Class StartsWithFunction
java.lang.Object
org.jaxen.function.StartsWithFunction
- All Implemented Interfaces:
Function
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns true if the string-value of the first item inargsstarts with the string-value of the second item inargs.static BooleanReturns true if the string-value ofstrArgstarts with the string-value ofmatchArg.
-
Constructor Details
-
StartsWithFunction
public StartsWithFunction()Create a newStartsWithFunctionobject.
-
-
Method Details
-
call
Returns true if the string-value of the first item inargsstarts with the string-value of the second item inargs. Otherwise it returns false.- Specified by:
callin interfaceFunction- Parameters:
context- the context at the point in the expression when the function is calledargs- a list that contains two items- Returns:
Boolean.TRUEif the first item inargsstarts with the string-value of the second item inargs; otherwiseBoolean.FALSE- Throws:
FunctionCallException- ifargsdoes not have length two
-