org.ucl.xpath.function
Class FnConcat

java.lang.Object
  extended byorg.ucl.xpath.function.Function
      extended byorg.ucl.xpath.function.FnConcat

public class FnConcat
extends Function

Sequence concatenation function.

Usage: fn:concat($arg1 as xdt:anyAtomicType?, $arg2 as xdt:anyAtomicType?, ... ) as xs:string

This class accepts two or more xdt:anyAtomicType arguments and converts them to xs:string. It then returns the xs:string that is the concatenation of the values of its arguments after conversion. If any of the arguments is the empty sequence, the argument is treated as the zero-length string.

The concat() function is specified to allow an arbitrary number of arguments that are concatenated together.


Field Summary
 
Fields inherited from class org.ucl.xpath.function.Function
_arity, _fl, _name
 
Constructor Summary
FnConcat()
          Constructor for FnConcat.
 
Method Summary
static ResultSequence concat(java.util.Collection args)
          Concatenate the arguments.
 ResultSequence evaluate(java.util.Collection args)
          Evaluate the arguments.
 
Methods inherited from class org.ucl.xpath.function.Function
arity, convert_argument, convert_arguments, dynamic_context, name, set_function_library, signature, signature, signature, static_context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FnConcat

public FnConcat()
Constructor for FnConcat.

Method Detail

evaluate

public ResultSequence evaluate(java.util.Collection args)
                        throws DynamicError
Evaluate the arguments.

Specified by:
evaluate in class Function
Parameters:
args - is evaluated.
Returns:
The evaluation of the concatenation of the arguments.
Throws:
DynamicError - Dynamic error.

concat

public static ResultSequence concat(java.util.Collection args)
                             throws DynamicError
Concatenate the arguments.

Parameters:
args - are concatenated.
Returns:
The result of the concatenation of the arguments.
Throws:
DynamicError - Dynamic error.