Interface YangXPathExpression.UnqualifiedBound
- All Superinterfaces:
Immutable
,YangXPathExpression
,YangXPathExpression.QualifiedBound
- Enclosing interface:
- YangXPathExpression
public static interface YangXPathExpression.UnqualifiedBound
extends YangXPathExpression.QualifiedBound
An Unqualified-bound expression. All
UnresolvedQName.Unqualified
s are eliminated and replaced with QName
s.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.xpath.api.YangXPathExpression
YangXPathExpression.QualifiedBound, YangXPathExpression.UnqualifiedBound
-
Method Summary
Modifier and TypeMethodDescriptionAttempt to interpret aYangLiteralExpr
referenced by this expression as aQName
.Methods inherited from interface org.opendaylight.yangtools.yang.xpath.api.YangXPathExpression
getMathMode, getRootExpr, getYangVersion, interpretAsInstanceIdentifier
-
Method Details
-
interpretAsQName
Description copied from interface:YangXPathExpression
Attempt to interpret aYangLiteralExpr
referenced by this expression as aQName
. This method is required to perform late value binding of the expression when the literal needs to be interpreted as a reference to anidentity
.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.
- Specified by:
interpretAsQName
in interfaceYangXPathExpression
- Parameters:
expr
- Literal to be reinterpreted- Returns:
- YangQNameExpr result of interpretation
- Throws:
XPathExpressionException
- when the literal cannot be interpreted as a QName
-