Added getParent() method to DataSchemaNode and DataNodeContainer. Fixed Bugs.
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / DataSchemaNode.java
index 892a725225c8f455059aa8ed969b8039fde909ee..f126a529396d78ff2e8b30aa9a10bcb932aaa4e0 100644 (file)
@@ -8,17 +8,19 @@
 package org.opendaylight.yangtools.yang.model.api;
 
 /**
- * 
+ *
  * Contains the method which are used for getting metadata from the schema nodes
  * which contains data.
- * 
+ *
  */
-public interface DataSchemaNode extends SchemaNode {
+public interface DataSchemaNode extends SchemaNode, YangNode {
+
+    YangNode getParent();
 
     /**
      * 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>
      */
@@ -27,7 +29,7 @@ public interface DataSchemaNode extends SchemaNode {
     /**
      * 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>
      */
@@ -36,7 +38,7 @@ public interface DataSchemaNode extends SchemaNode {
     /**
      * Returns <code>true</code> if the data represents configuration data,
      * otherwise returns <code>false</code>
-     * 
+     *
      * @return <code>true</code> if the data represents configuration data,
      *         otherwise returns <code>false</code>
      */
@@ -44,7 +46,7 @@ public interface DataSchemaNode extends SchemaNode {
 
     /**
      * Returns the constraints associated with Data Schema Node
-     * 
+     *
      * @return the constraints associated with Data Schema Node
      */
     ConstraintDefinition getConstraints();