java.lang.Object
dev.metaschema.core.metapath.function.library.FnBoolean
Implements the XPath 3.1 fn:boolean
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IBooleanItemGet the effective boolean value of the provided sequence.static booleanfnBooleanAsPrimitive(IItem item) A helper method that gets the effective boolean value of the provided item based on XPath 3.1.static booleanfnBooleanAsPrimitive(ISequence<?> sequence) A helper method that gets the effective boolean value of the provided sequence based on XPath 3.1.
-
Method Details
-
fnBoolean
Get the effective boolean value of the provided sequence.Based on the XPath 3.1 fn:boolean function.
- Parameters:
sequence- the sequence to evaluate- Returns:
- the effective boolean value of the sequence
-
fnBooleanAsPrimitive
A helper method that gets the effective boolean value of the provided sequence based on XPath 3.1.- Parameters:
sequence- the sequence to evaluate- Returns:
- the effective boolean value
-
fnBooleanAsPrimitive
A helper method that gets the effective boolean value of the provided item based on XPath 3.1.- Parameters:
item- the item to evaluate- Returns:
- the effective boolean value
-