Bug 2366 - Effective statements impl for new yang parser.
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / SchemaNode.java
index 84dc24a0b4298e4972c1d32d53cc26c091b029ca..7c96cbb6a5cde08bd080de454ac81ebfea255c39 100644 (file)
@@ -14,58 +14,30 @@ import org.opendaylight.yangtools.yang.common.QName;
 /**
  * SchemaNode represents a node in schema tree.
  */
-public interface SchemaNode {
+public interface SchemaNode extends DocumentedNode {
 
     /**
      * Returns QName of the instance of the type <code>SchemaNode</code>.
-     * 
+     *
      * @return QName with the name of the schema node
      */
-    public QName getQName();
+    QName getQName();
 
     /**
      * Returns the schema path of the instance of the type
      * <code>SchemaNode</code> <code>SchemaNode</code>.
-     * 
+     *
      * @return schema path of the schema node
      */
-    public SchemaPath getPath();
+    SchemaPath getPath();
 
     /**
-     * Returns description of the instance of the type <code>SchemaNode</code>
-     * 
-     * @return string with textual description the node which represents the
-     *         argument of the YANG <code>description</code> substatement
-     */
-    public String getDescription();
-
-    /**
-     * Returns reference of the instance of the type <code>SchemaNode</code>
-     * 
-     * The reference refers to external document that provides additional
-     * information relevant for the instance of this type.
-     * 
-     * @return string with the reference to some external document which
-     *         represents the argument of the YANG <code>reference</code>
-     *         substatement
-     */
-    public String getReference();
-
-    /**
-     * Returns status of the instance of the type <code>SchemaNode</code>
-     * 
-     * @return status of this node which represents the argument of the YANG
-     *         <code>status</code> substatement
-     */
-    public Status getStatus();
-
-    /**
-     * 
+     *
      * Returns unknown schema nodes which belongs to this instance of the type
      * <code>SchemaNode</code>.
-     * 
+     *
      * @return list of unknown schema nodes defined under this schema node.
      */
-    public List<UnknownSchemaNode> getUnknownSchemaNodes();
+    List<UnknownSchemaNode> getUnknownSchemaNodes();
 
 }