BUG 1131: untangling package cyclic dependencies in yang-parser-impl
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / builder / api / DataSchemaNodeBuilder.java
index e816e8c282e0cc7ff4f0c66c8f22d138bd14eff6..c4d24d36024d164d2fa80c5531163c34bec57389 100644 (file)
@@ -8,8 +8,6 @@
 package org.opendaylight.yangtools.yang.parser.builder.api;
 
 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaPath;
-import org.opendaylight.yangtools.yang.parser.builder.impl.ConstraintsBuilder;
 
 /**
  * Interface for all yang data-schema nodes [anyxml, case, container, grouping,
@@ -17,21 +15,18 @@ import org.opendaylight.yangtools.yang.parser.builder.impl.ConstraintsBuilder;
  */
 public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember {
 
-    /**
-     * Build DataSchemaNode object from this builder.
-     */
-    DataSchemaNode build();
 
-    void setPath(SchemaPath path);
 
     /**
+     *
+     * Returns true if product of this builder is added by augmentation.
      *
      * @return true, if this node is added by augmentation, false otherwise
      */
     boolean isAugmenting();
 
     /**
-     * Set if this node is added by augmentation.
+     * Set if the product of the builder node is introduced by augmentation.
      *
      * @param augmenting
      */
@@ -45,9 +40,10 @@ public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember
     boolean isConfiguration();
 
     /**
-     * Set config statement.
+     * Set config statement to the product.
+     *
      *
-     * @param config
+     * @param config true if config true was set, false if config false was set.
      */
     void setConfiguration(boolean config);
 
@@ -58,4 +54,12 @@ public interface DataSchemaNodeBuilder extends SchemaNodeBuilder, GroupingMember
      */
     ConstraintsBuilder getConstraints();
 
+    /**
+     * Build DataSchemaNode object from this builder.
+     *
+     * @return instance of {@link DataSchemaNode} based on the state present in this builder.
+     */
+    @Override
+    DataSchemaNode build();
+
 }