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 / SchemaNodeBuilder.java
index 4dca5aead6bde954892bf40eba1baa713a025b39..2c9fe3aa1b8f56f5f35ce1d6d98bdfacdfdc236c 100644 (file)
@@ -10,72 +10,37 @@ package org.opendaylight.yangtools.yang.parser.builder.api;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.model.api.SchemaNode;
 import org.opendaylight.yangtools.yang.model.api.SchemaPath;
-import org.opendaylight.yangtools.yang.model.api.Status;
 
 /**
- * Interface for all builders of SchemaNode nodes.
+ * Builder for {@link SchemaNode}.
  */
-public interface SchemaNodeBuilder extends Builder {
+public interface SchemaNodeBuilder extends DocumentedNodeBuilder, Builder {
 
     /**
-     * Get qname of this node.
+     * Returns qname of resulting {@link SchemaNode}.
      *
      * @return QName of this node
      */
     QName getQName();
 
     /**
-     * Get schema path of this node.
+     * Returns schema path of resulting  {@link SchemaNode}.
      *
      * @return SchemaPath of this node
      */
     SchemaPath getPath();
 
     /**
-     * Get description of this node.
+     * Updates schema path to resulting {@link SchemaNode}.
      *
-     * @return description statement
+     * @param path
      */
-    String getDescription();
-
-    /**
-     * Set description to this node.
-     *
-     * @param description
-     */
-    void setDescription(String description);
-
-    /**
-     * Get reference of this node.
-     *
-     * @return reference statement
-     */
-    String getReference();
-
-    /**
-     * Set reference to this node.
-     *
-     * @param reference
-     */
-    void setReference(String reference);
-
-    /**
-     * Get status of this node.
-     *
-     * @return status statement
-     */
-    Status getStatus();
-
-    /**
-     * Set status to this node.
-     *
-     * @param status
-     */
-    void setStatus(Status status);
+    void setPath(SchemaPath path);
 
     /**
      * Build SchemaNode object from this builder.
      */
+    @Override
     SchemaNode build();
 
 }