Class RevisionAwareXPathImpl
- java.lang.Object
-
- org.opendaylight.yangtools.yang.model.util.RevisionAwareXPathImpl
-
- All Implemented Interfaces:
RevisionAwareXPath
public class RevisionAwareXPathImpl extends Object implements RevisionAwareXPath
Thehelper
implementation of Instance Revision Aware XPath interface.- See Also:
RevisionAwareXPath
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.api.RevisionAwareXPath
RevisionAwareXPath.WithExpression
-
-
Constructor Summary
Constructors Constructor Description RevisionAwareXPathImpl(String xpath, boolean absolute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getOriginalString()
Returns the XPath formatted string as is defined in model.int
hashCode()
boolean
isAbsolute()
Returnstrue
if the XPapth starts in root of Yang model, otherwise returnsfalse
.
-
-
-
Constructor Detail
-
RevisionAwareXPathImpl
public RevisionAwareXPathImpl(String xpath, boolean absolute)
-
-
Method Detail
-
isAbsolute
public boolean isAbsolute()
Description copied from interface:RevisionAwareXPath
Returnstrue
if the XPapth starts in root of Yang model, otherwise returnsfalse
.- Specified by:
isAbsolute
in interfaceRevisionAwareXPath
- Returns:
true
if the XPapth starts in root of Yang model, otherwise returnsfalse
-
getOriginalString
public String getOriginalString()
Description copied from interface:RevisionAwareXPath
Returns the XPath formatted string as is defined in model. For example: /prefix:container/prefix:container::cond[when()=foo]/prefix:leaf- Specified by:
getOriginalString
in interfaceRevisionAwareXPath
- Returns:
- the XPath formatted string as is defined in model.
-
-