Interface YangXPathExpression.UnqualifiedBound
-
- All Superinterfaces:
Immutable
,MutationBehaviour<Immutable>
,YangXPathExpression
,YangXPathExpression.QualifiedBound
- Enclosing interface:
- YangXPathExpression
public static interface YangXPathExpression.UnqualifiedBound extends YangXPathExpression.QualifiedBound
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.xpath.api.YangXPathExpression
YangXPathExpression.QualifiedBound, YangXPathExpression.UnqualifiedBound
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description YangQNameExpr.Resolved
interpretAsQName(YangLiteralExpr expr)
Attempt 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 Detail
-
interpretAsQName
YangQNameExpr.Resolved interpretAsQName(YangLiteralExpr expr) throws XPathExpressionException
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
-
-