Module dev.metaschema.core
Class FnInsertBefore
java.lang.Object
dev.metaschema.core.metapath.function.library.FnInsertBefore
Implements the XPath 3.1 fn:insert-before
function.
-
Method Summary
Modifier and TypeMethodDescriptionfnInsertBefore(List<T> target, IIntegerItem positionItem, List<T> inserts) An implementation of XPath 3.1 fn:insert-before.
-
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 insertionpositionItem- the integer position of the item to insert beforeinserts- the sequence of Metapath items to be inserted into the target- Returns:
- the sequence of Metapath items with insertions
-