Module dev.metaschema.core
Class FnDocumentAvailable
java.lang.Object
dev.metaschema.core.metapath.function.library.FnDocumentAvailable
Implements the XPath 3.1 fn:doc-available
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IBooleanItemfnDocAvailable(IAnyUriItem documentUri, DynamicContext context) Test if the document associated with the URI is retrievable.static IBooleanItemfnDocAvailable(IStringItem documentUri, DynamicContext context) Test if the document associated with the URI is retrievable.
-
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 fromcontext- 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 fromcontext- the Metapath dynamic context- Returns:
- if the document is retrievable
-