java.lang.Object
dev.metaschema.core.metapath.function.library.FnDoc
Implements the XPath 3.1
fn:doc
function.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IDocumentNodeItemfnDoc(IAnyUriItem documentUri, DynamicContext context) Dynamically load the document associated with the URI, and return aIDocumentNodeItemcontaining the result.static IDocumentNodeItemfnDoc(IStringItem documentUri, DynamicContext context) Dynamically load the document associated with the URI, and return aIDocumentNodeItemcontaining the result.
-
Method Details
-
fnDoc
public static IDocumentNodeItem fnDoc(@NonNull IStringItem documentUri, @NonNull DynamicContext context) Dynamically load the document associated with the URI, and return aIDocumentNodeItemcontaining the result.Based on the XPath 3.1 fn:doc function.
- Parameters:
documentUri- the resource to load the data fromcontext- the Metapath dynamic context- Returns:
- the loaded document node item
-
fnDoc
public static IDocumentNodeItem fnDoc(@NonNull IAnyUriItem documentUri, @NonNull DynamicContext context) Dynamically load the document associated with the URI, and return aIDocumentNodeItemcontaining the result.Based on the XPath 3.1 fn:doc function.
- Parameters:
documentUri- the resource to load the data fromcontext- the Metapath dynamic context- Returns:
- the loaded document node item
-