Implemented ordering of yang module data nodes. Added Comparators utility class.
[controller.git] / opendaylight / sal / yang-prototype / yang / yang-model-api / src / main / java / org / opendaylight / controller / yang / model / api / UsesNode.java
index 715dce7027d2d72fa5804254e8ec60b5cb79c816..1920f9859c55e68825677decfe92f4bd9a2a0469 100644 (file)
@@ -7,12 +7,45 @@
  */\r
 package org.opendaylight.controller.yang.model.api;\r
 \r
+import java.util.Map;\r
 import java.util.Set;\r
 \r
 public interface UsesNode {\r
 \r
+    /**\r
+     * @return path to 'grouping' on which this 'uses' statement points\r
+     */\r
     SchemaPath getGroupingPath();\r
+\r
+    /**\r
+     * @return Set of augment statements defined under this uses node\r
+     */\r
     Set<AugmentationSchema> getAugmentations();\r
+\r
+    /**\r
+     * Returns <code>true</code> if the data node was added by augmentation,\r
+     * otherwise returns <code>false</code>\r
+     *\r
+     * @return <code>true</code> if the data node was added by augmentation,\r
+     *         otherwise returns <code>false</code>\r
+     */\r
     boolean isAugmenting();\r
 \r
+    /**\r
+     * Returns <code>true</code> if the data node was added by uses statement,\r
+     * otherwise returns <code>false</code>\r
+     *\r
+     * @return <code>true</code> if the data node was added by uses statement,\r
+     *         otherwise returns <code>false</code>\r
+     */\r
+    boolean isAddedByUses();\r
+\r
+    /**\r
+     * Some of the properties of each node in the grouping can be refined with\r
+     * the "refine" statement.\r
+     *\r
+     * @return Map, where key is schema path of refined node and value is\r
+     *         refined node\r
+     */\r
+    Map<SchemaPath, SchemaNode> getRefines();\r
 }\r