org.ucl.xpath.function
Class FnQName

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

public class FnQName
extends Function

Returns an xs:QName with the namespace URI given in $paramURI. If $paramURI is the empty string or the empty sequence, it represents "no namespace". The prefix (or absence of a prefix) in $paramQName is retained in the returned xs:QName value. The local name in the result is taken from the local part of $paramQName.


Field Summary
 
Fields inherited from class org.ucl.xpath.function.Function
_arity, _fl, _name
 
Constructor Summary
FnQName()
          Constructor for FnQName.
 
Method Summary
 ResultSequence evaluate(java.util.Collection args)
          Evaluate arguments.
static java.util.Collection expected_args()
          Obtain a list of expected arguments.
static ResultSequence resolve_QName(java.util.Collection args, StaticContext sc)
          Resolve the QName of the given 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

FnQName

public FnQName()
Constructor for FnQName.

Method Detail

evaluate

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

Specified by:
evaluate in class Function
Parameters:
args - argument expressions.
Returns:
Result of evaluation.
Throws:
DynamicError - Dynamic error.

resolve_QName

public static ResultSequence resolve_QName(java.util.Collection args,
                                           StaticContext sc)
                                    throws DynamicError
Resolve the QName of the given arguments.

Parameters:
args - Result from teh expressions evaluation.
sc - Result of static context operation.
Returns:
Result of the fn:QName operation.
Throws:
DynamicError - Dynamic error.

expected_args

public static java.util.Collection expected_args()
Obtain a list of expected arguments.

Returns:
Result of operation.