org.jaxen.function
Class ConcatFunction
java.lang.Objectorg.jaxen.function.ConcatFunction
- Function
public class ConcatFunction
extends java.lang.Object
4.2 string concat(string,string,string*)
Concatenates its arguments and returns the resulting string.
- bob mcwhirter (bob@werken.com)
Object | call(Context context, List args)- Concatenates the arguments and returns the resulting string.
|
static String | evaluate(List list, Navigator nav)- Converts each item in the list to a string and returns the
concatenation of these strings.
|
ConcatFunction
public ConcatFunction()
Create a new ConcatFunction object.
call
public Object call(Context context,
List args)
throws FunctionCallException Concatenates the arguments and returns the resulting string.
Non-string items are first converted to strings as if by the
XPath string() function.
- call in interface Function
context - the context at the point in the
expression when the function is calledargs - the list of strings to be concatenated
- a
String containing the concatenation of the items
of args
evaluate
public static String evaluate(List list,
Navigator nav) Converts each item in the list to a string and returns the
concatenation of these strings.
If necessary, each item is first converted to a String
as if by the XPath string() function.
list - the items to be concatenatednav - ignored
- the concatenation of the arguments