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

public final class ArrayAppend extends Object
Implements the XPath 3.1 array:append function.
  • Method Details

    • append

      @NonNull public static <T extends ICollectionValue> IArrayItem<T> append(@NonNull IArrayItem<T> array, @NonNull T appendage)
      An implementation of XPath 3.1 array:append.
      Type Parameters:
      T - the type of items in the given Metapath array
      Parameters:
      array - the target Metapath array
      appendage - the Metapath item to append to the identified array
      Returns:
      a new array containing the modification