Migrate choice statement implementations
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / SchemaNode.java
index 7c96cbb6a5cde08bd080de454ac81ebfea255c39..b308ec38a7da27b1f78a53b79ade35cc4f5ed51a 100644 (file)
@@ -7,37 +7,24 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-import java.util.List;
-
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.common.QName;
 
 /**
  * SchemaNode represents a node in schema tree.
  */
-public interface SchemaNode extends DocumentedNode {
-
+public interface SchemaNode extends DocumentedNode.WithStatus {
     /**
      * Returns QName of the instance of the type <code>SchemaNode</code>.
      *
      * @return QName with the name of the schema node
      */
-    QName getQName();
+    @NonNull QName getQName();
 
     /**
-     * Returns the schema path of the instance of the type
-     * <code>SchemaNode</code> <code>SchemaNode</code>.
+     * Returns the schema path of the instance of the type {@code SchemaNode}.
      *
      * @return schema path of the schema node
      */
-    SchemaPath getPath();
-
-    /**
-     *
-     * 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.
-     */
-    List<UnknownSchemaNode> getUnknownSchemaNodes();
-
+    @NonNull SchemaPath getPath();
 }