org.ucl.xpath.function
Class FnLowerCase

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

public class FnLowerCase
extends Function

Conversion to lower-case function.

Usage: fn:lower-case($arg as xs:string?) as xs:string

This class returns the value of $arg after translating every character to its lower-case correspondent. Every character that does not have an lower-case correspondent is included in the returned value in its original form.

If the value of $arg is the empty sequence, the zero-length string is returned.


Field Summary
 
Fields inherited from class org.ucl.xpath.function.Function
_arity, _fl, _name
 
Constructor Summary
FnLowerCase()
          Constructor for FnLowerCase.
 
Method Summary
 ResultSequence evaluate(java.util.Collection args)
          Evaluate the arguments.
static java.util.Collection expected_args()
          Calculate the expected arguments.
static ResultSequence lower_case(java.util.Collection args)
          Convert arguments to lower case.
 
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

FnLowerCase

public FnLowerCase()
Constructor for FnLowerCase.

Method Detail

evaluate

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

Specified by:
evaluate in class Function
Parameters:
args - are evaluated.
Returns:
The evaluation of the arguments being converted to lower case.
Throws:
DynamicError - Dynamic error.

lower_case

public static ResultSequence lower_case(java.util.Collection args)
                                 throws DynamicError
Convert arguments to lower case.

Parameters:
args - are converted to lower case.
Returns:
The result of converting the arguments to lower case.
Throws:
DynamicError - Dynamic error.

expected_args

public static java.util.Collection expected_args()
Calculate the expected arguments.

Returns:
The expected arguments.