Class FnDocumentAvailable

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

public final class FnDocumentAvailable extends Object
Implements the XPath 3.1 fn:doc-available function.
  • Method Details

    • fnDocAvailable

      public static IBooleanItem fnDocAvailable(@NonNull IStringItem documentUri, @NonNull DynamicContext context)
      Test if the document associated with the URI is retrievable.

      Based on the XPath 3.1 fn:doc-available function.

      Parameters:
      documentUri - the resource to load the data from
      context - the Metapath dynamic context
      Returns:
      if the document is retrievable
    • fnDocAvailable

      public static IBooleanItem fnDocAvailable(@NonNull IAnyUriItem documentUri, @NonNull DynamicContext context)
      Test if the document associated with the URI is retrievable.

      Based on the XPath 3.1 fn:doc-available function.

      Parameters:
      documentUri - the resource to load the data from
      context - the Metapath dynamic context
      Returns:
      if the document is retrievable