X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Fapi%2FSchemaNode.java;h=b308ec38a7da27b1f78a53b79ade35cc4f5ed51a;hb=f2c2d685a6acdf303c9d187d8e16f5bd20b1af20;hp=146da3ae65ef5e9c53300d97cd1348473c4aa26e;hpb=c5b6f823ad2fa88bb1d76751a97a9cdf3e310e99;p=yangtools.git
diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java
index 146da3ae65..b308ec38a7 100644
--- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java
+++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/SchemaNode.java
@@ -7,65 +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 {
-
+public interface SchemaNode extends DocumentedNode.WithStatus {
/**
* Returns QName of the instance of the type SchemaNode
.
- *
+ *
* @return QName with the name of the schema node
*/
- QName getQName();
+ @NonNull QName getQName();
/**
- * Returns the schema path of the instance of the type
- * SchemaNode
SchemaNode
.
- *
+ * Returns the schema path of the instance of the type {@code SchemaNode}.
+ *
* @return schema path of the schema node
*/
- SchemaPath getPath();
-
- /**
- * Returns description of the instance of the type SchemaNode
- *
- * @return string with textual description the node which represents the
- * argument of the YANG description
substatement
- */
- String getDescription();
-
- /**
- * Returns reference of the instance of the type SchemaNode
- *
- * 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 reference
- * substatement
- */
- String getReference();
-
- /**
- * Returns status of the instance of the type SchemaNode
- *
- * @return status of this node which represents the argument of the YANG
- * status
substatement
- */
- Status getStatus();
-
- /**
- *
- * Returns unknown schema nodes which belongs to this instance of the type
- * SchemaNode
.
- *
- * @return list of unknown schema nodes defined under this schema node.
- */
- List getUnknownSchemaNodes();
-
+ @NonNull SchemaPath getPath();
}