java.lang.Object
dev.metaschema.core.metapath.function.library.FnBoolean

public final class FnBoolean extends Object
Implements the XPath 3.1 fn:boolean function.
  • Method Details

    • fnBoolean

      @NonNull public static IBooleanItem fnBoolean(@NonNull 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