Merge from development repository.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-api / src / main / java / org / opendaylight / controller / yang / model / api / RevisionAwareXPath.java
index df360eb43c98e7e47ac7ab34d392b19383785f45..a3364d625f4fd194bd45ad2b297a63b15c75e3ea 100644 (file)
@@ -8,5 +8,21 @@
 package org.opendaylight.controller.yang.model.api;\r
 \r
 public interface RevisionAwareXPath {\r
-\r
+    \r
+    \r
+    /**\r
+     * Returns <code>true</code> if the XPapth starts in root of Yang model, otherwise returns <code>false</cdoe>.\r
+     * \r
+     * @return <code>true</code> if the XPapth starts in root of Yang model, otherwise returns <code>false</cdoe>\r
+     */\r
+    public boolean isAbsolute();\r
+    \r
+    /**\r
+     * Returns the XPath formatted string as is defined in model. \r
+     * <br>\r
+     * For example: /prefix:container/prefix:container::cond[when()=foo]/prefix:leaf\r
+     * \r
+     * @return the XPath formatted string as is defined in model.\r
+     */\r
+    public String toString();\r
 }\r