/** * Concatenates the arguments and returns the resulting string. * Non-string items are first converted to strings as if by the * XPath <code>string()<code> function. * * @param context the context at the point in the * expression when the function is called * @param args the list of strings to be concatenated * * @return a <code>String</code> containing the concatenation of the items * of <code>args</code> * * @throws FunctionCallException if <code>args</code> has less than two items */ public Object call(Context context, List args) throws FunctionCallException { if ( args.size() >= 2 ) { return evaluate( args, context.getNavigator() ); } throw new FunctionCallException("concat() requires at least two arguments"); }