@Beta @NonNullByDefault public interface PathExpression extends Immutable
path
statement.
Semantically a PathExpression
is similar to a YangXPathExpression
with guarantees around what
subexpressions it can contain:
YangLocationPath
YangXPathAxis.CHILD
and YangXPathAxis.PARENT
axisYangXPathAxis.CHILD
axis are YangLocationPath.QNameStep
YangFunction.CURRENT
YangBinaryOperator.EQUALS
is allowedModifier and Type | Interface and Description |
---|---|
static class |
PathExpression.DerefSteps
Steps of a PathExpression which is a combination of
deref() function call and a relative path,
corresponding to Errata 5617. |
static class |
PathExpression.LocationPathSteps
Steps of a PathExpression which is a LocationPath, corresponding to RFC7950 base specification.
|
static class |
PathExpression.Steps
Abstract base class for expressing steps of a PathExpression.
|
Modifier and Type | Method and Description |
---|---|
String |
getOriginalString()
Returns the path expression formatted string as is defined in model.
|
PathExpression.Steps |
getSteps()
Return the path of this expression, which can either be a
YangLocationPath (compliant to RFC7950) or
a YangPathExpr with filter being an invocation of YangFunction.DEREF . |
default boolean |
isAbsolute()
Returns
true if the XPapth starts in root of YANG model, otherwise returns false . |
String getOriginalString()
/prefix:container/prefix:container::cond[when()=foo]/prefix:leaf
PathExpression.Steps getSteps()
YangLocationPath
(compliant to RFC7950) or
a YangPathExpr
with filter being an invocation of YangFunction.DEREF
.UnsupportedOperationException
- if the implementation has not parsed the string. Implementations are
strongly encouraged to perform proper parsing.default boolean isAbsolute()
true
if the XPapth starts in root of YANG model, otherwise returns false
.true
if the XPapth starts in root of YANG model, otherwise returns false
Copyright © 2020 OpenDaylight. All rights reserved.