Class FnBoolean
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.metapath.function.library.FnBoolean
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IBooleanItem
fnBoolean(ISequence<?> sequence)
Get the effective boolean value of the provided sequence.static boolean
fnBooleanAsPrimitive(ISequence<?> sequence)
A helper method that gets the effective boolean value of the provided sequence based on XPath 3.1.static boolean
fnBooleanAsPrimitive(IItem item)
A helper method that gets the effective boolean value of the provided item based on XPath 3.1.
-
-
-
Method Detail
-
fnBoolean
@NonNull public static IBooleanItem fnBoolean(@Nullable ISequence<?> sequence)
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
public static boolean fnBooleanAsPrimitive(@NonNull ISequence<?> sequence)
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
public static boolean fnBooleanAsPrimitive(@NonNull IItem item)
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
-
-