org.ucl.xpath.function
Class FnUpperCase

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

public class FnUpperCase
extends Function

Conversion to upper-case function.

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

This class returns the value of $arg after translating every character to its upper-case correspondent. Every character that does not have an upper-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
FnUpperCase()
          Constructor for FnUpperCase.
 
Method Summary
 ResultSequence evaluate(java.util.Collection args)
          Evaluate the arguments.
static java.util.Collection expected_args()
          Calculate the expected arguments.
static ResultSequence upper_case(java.util.Collection args)
          Convert arguments to upper 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

FnUpperCase

public FnUpperCase()
Constructor for FnUpperCase.

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 upper case.
Throws:
DynamicError - Dynamic error.

upper_case

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

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

expected_args

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

Returns:
The expected arguments.