@Beta
public interface XPathSchemaContext
XPathDocuments, which are bound to
a particular root node.| Modifier and Type | Method and Description |
|---|---|
XPathExpression |
compileExpression(SchemaPath schemaPath,
com.google.common.base.Converter<String,QNameModule> prefixes,
String xpath)
Compile an XPath expression for execution on
XPathDocuments produced by this context. |
XPathDocument |
createDocument(NormalizedNode<?,?> documentRoot)
Create a new document context.
|
@Nonnull XPathExpression compileExpression(@Nonnull SchemaPath schemaPath, com.google.common.base.Converter<String,QNameModule> prefixes, @Nonnull String xpath) throws XPathExpressionException
XPathDocuments produced by this context.
The user must provide a prefix-to-mapping Converter, which will be used to convert any prefixes found
in the XPath expression being compiled in the resulting context.
schemaPath - Schema path of the node at which this expression is expected to be evaluatedprefixes - Prefix-to-namespace converterxpath - XPath expression to compileXPathExpressionException - if the provided expression is invalid, either syntactically or by referencing
namespaces unknown to this schema context.@Nonnull XPathDocument createDocument(@Nonnull NormalizedNode<?,?> documentRoot)
documentRoot - Root node of the documentXPathDocument on which queries may be executed.IllegalArgumentException - if the document root is not known to this schema context.Copyright © 2019 OpenDaylight. All rights reserved.