Package org.jaxen.function
Class StartsWithFunction
java.lang.Object
org.jaxen.function.StartsWithFunction
- All Implemented Interfaces:
Function
4.2 boolean starts-with(string,string)
The starts-with function returns true if the first argument string starts with the second argument string, and otherwise returns false.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns true if the string-value of the first item inargs
starts with the string-value of the second item inargs
.static Boolean
Returns true if the string-value ofstrArg
starts with the string-value ofmatchArg
.
-
Constructor Details
-
StartsWithFunction
public StartsWithFunction()Create a newStartsWithFunction
object.
-
-
Method Details
-
call
Returns true if the string-value of the first item inargs
starts with the string-value of the second item inargs
. Otherwise it returns false.- Specified by:
call
in interfaceFunction
- Parameters:
context
- the context at the point in the expression when the function is calledargs
- a list that contains two items- Returns:
Boolean.TRUE
if the first item inargs
starts with the string-value of the second item inargs
; otherwiseBoolean.FALSE
- Throws:
FunctionCallException
- ifargs
does not have length two
-