@Beta public interface YangXPathExpression extends Immutable
Modifier and Type | Method and Description |
---|---|
YangExpr |
getRootExpr() |
YangLocationPath |
interpretAsInstanceIdentifier(YangLiteralExpr expr) |
QName |
interpretAsQName(YangLiteralExpr expr)
Attempt to interpret a
YangLiteralExpr referenced by this expression as a QName . |
YangExpr getRootExpr()
QName interpretAsQName(YangLiteralExpr expr) throws XPathExpressionException
YangLiteralExpr
referenced by this expression as a QName
. This method
is required to perform late value binding of the expression when the literal needs to be interpreted as
a reference to an identity
.
The syntax of expr is required to conform to
XML QName format, as further restricted by
YANG identityref
Lexical Representation.
Unfortunately we do not know when a literal will need to be interpreted in this way, as that can only be known at evaluation.
expr
- Literal to be reinterpretedXPathExpressionException
- when the literal cannot be interpreted as a QNameYangLocationPath interpretAsInstanceIdentifier(YangLiteralExpr expr) throws XPathExpressionException
XPathExpressionException
Copyright © 2019 OpenDaylight. All rights reserved.