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

public final class FnName extends Object
/** Implements fn:name functions.
  • Method Details

    • fnName

      @NonNull public static String fnName(@NonNull INodeItem arg, @NonNull StaticContext staticContext)
      Get the name of the provided node item.

      Based on the XPath 3.1 fn:name function.

      Parameters:
      arg - the node item to get the name for
      staticContext - the static context used to resolve the namespace prefix
      Returns:
      the name of the node if it has one, or an empty string otherwise