|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ucl.xpath.function.Function org.ucl.xpath.function.FnBoolean
Computes the effective boolean value of the sequence $arg. If $arg is the empty sequence, returns false. If $arg contains a single atomic value, then the function returns false if $arg is: - The singleton xs:boolean value false. - The singleton value "" (zero-length string) of type xs:string or xdt:untypedAtomic. - A singleton numeric value that is numerically equal to zero. - The singleton xs:float or xs:double value NaN. In all other cases, returns true.
Field Summary |
Fields inherited from class org.ucl.xpath.function.Function |
_arity, _fl, _name |
Constructor Summary | |
FnBoolean()
Constructor for FnBoolean. |
Method Summary | |
ResultSequence |
evaluate(java.util.Collection args)
Evaluate arguments. |
static ResultSequence |
fn_boolean(ResultSequence arg)
Boolean operation. |
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 |
public FnBoolean()
Method Detail |
public ResultSequence evaluate(java.util.Collection args)
evaluate
in class Function
args
- argument expressions.
public static ResultSequence fn_boolean(ResultSequence arg)
arg
- Result from the expressions evaluation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |