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

public final class FnInsertBefore extends Object
Implements the XPath 3.1 fn:insert-before function.
  • Method Details

    • fnInsertBefore

      @NonNull public static <T extends IItem> List<T> fnInsertBefore(@NonNull List<T> target, @NonNull IIntegerItem positionItem, @NonNull List<T> inserts)
      An implementation of XPath 3.1 fn:insert-before.
      Type Parameters:
      T - the type for the given Metapath sequence
      Parameters:
      target - the sequence of Metapath items that is the target of insertion
      positionItem - the integer position of the item to insert before
      inserts - the sequence of Metapath items to be inserted into the target
      Returns:
      the sequence of Metapath items with insertions