Class FnBoolean

    • 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