@Beta
public interface XPathSchemaContext
XPathDocument
s, which are bound to
a particular root node.Modifier and Type | Method and Description |
---|---|
@NonNull XPathExpression |
compileExpression(@NonNull SchemaPath schemaPath,
@NonNull com.google.common.base.Converter<String,QNameModule> prefixes,
@NonNull String xpath)
Compile an XPath expression for execution on
XPathDocument s produced by this context. |
@NonNull XPathDocument |
createDocument(@NonNull NormalizedNode<?,?> documentRoot)
Create a new document context.
|
@NonNull XPathExpression compileExpression(@NonNull SchemaPath schemaPath, @NonNull com.google.common.base.Converter<String,QNameModule> prefixes, @NonNull String xpath) throws XPathExpressionException
XPathDocument
s 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.