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

public final class FnResolveUri extends Object
Implements the XPath 3.1 resolve-ur functions.
  • Method Details

    • fnResolveUri

      @Nullable public static IAnyUriItem fnResolveUri(@NonNull IStringItem relative, @Nullable IAnyUriItem base, @NonNull DynamicContext dynamicContext)
      Resolve the relative URI against the provided base URI.
      Parameters:
      relative - the relative URI to resolve
      base - the base URI to resolve against
      dynamicContext - the evaluation context used to get the static base URI if needed
      Returns:
      the resolved URI or null if the relative URI in null
    • fnResolveUri

      @NonNull public static IAnyUriItem fnResolveUri(@NonNull IAnyUriItem relative, @Nullable IAnyUriItem base, @NonNull DynamicContext dynamicContext)
      Resolve the relative URI against the provided base URI.
      Parameters:
      relative - the relative URI to resolve
      base - the base URI to resolve against
      dynamicContext - the evaluation context used to get the static base URI if needed
      Returns:
      the resolved URI or null if the relative URI in null
      Throws:
      UriFunctionException - if the base URI is not configured in the dynamic context