Added getParent() method to DataSchemaNode and DataNodeContainer. Fixed Bugs.
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / UsesNode.java
index ae9aabae2bc32a34091fb3564af3dc4bfd9c98d6..b8042c80bb52d1aa4bbb38738833bf46519d53ba 100644 (file)
@@ -13,21 +13,23 @@ import java.util.Set;
 /**
  * Contains the methods for getting data and checking properties of the YANG
  * <code>uses</code> substatement.
- * 
+ *
  */
-public interface UsesNode {
+public interface UsesNode extends YangNode {
+
+    YangNode getParent();
 
     /**
      * Returns the schema path to used grouping.
-     * 
+     *
      * @return schema path to 'grouping' on which this 'uses' statement points
      */
     SchemaPath getGroupingPath();
 
     /**
-     * 
+     *
      * Returns agumentations which were specified in this uses node.
-     * 
+     *
      * @return Set of augment statements defined under this uses node
      */
     Set<AugmentationSchema> getAugmentations();
@@ -35,7 +37,7 @@ public interface UsesNode {
     /**
      * Returns <code>true</code> if the data node was added by augmentation,
      * otherwise returns <code>false</code>
-     * 
+     *
      * @return <code>true</code> if the data node was added by augmentation,
      *         otherwise returns <code>false</code>
      */
@@ -44,7 +46,7 @@ public interface UsesNode {
     /**
      * Returns <code>true</code> if the data node was added by uses statement,
      * otherwise returns <code>false</code>
-     * 
+     *
      * @return <code>true</code> if the data node was added by uses statement,
      *         otherwise returns <code>false</code>
      */
@@ -53,7 +55,7 @@ public interface UsesNode {
     /**
      * Some of the properties of each node in the grouping can be refined with
      * the "refine" statement.
-     * 
+     *
      * @return Map, where key is schema path of refined node and value is
      *         refined node
      */