@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 | Method and Description |
---|---|
YangLocationPath |
getLocation()
Return the
YangLocationPath of this expression. |
String |
getOriginalString()
Returns the path expression formatted string as is defined in model.
|
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
YangLocationPath getLocation()
YangLocationPath
of this expression.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 © 2019 OpenDaylight. All rights reserved.