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

public final class FnPath extends Object
Implements the XPath 3.1 fn:path functions.

This implementation differs from the XPath specification by returning a Metapath expression instead of an XPath expression.

  • Method Details

    • fnPath

      @NonNull public static ISequence<IStringItem> fnPath(@NonNull ISequence<?> sequence)
      An implementation of XPath 3.1 fn:path.
      Parameters:
      sequence - a Metapath sequence containing an item to get the Metapath for
      Returns:
      a sequence containing the generated Metapath
    • fnPath

      @Nullable public static IStringItem fnPath(@Nullable INodeItem item)
      Generates a Metapath for the provided item.
      Parameters:
      item - the item to get the Metapath for
      Returns:
      the generated Metapath