Refactor rpc/action statements
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / SchemaContextProvider.java
index c08b1677aee255b9b3687874882d1431d6264d04..3ee9badb9fdcd5512aaca2da7636a5d1e8e71162 100644 (file)
@@ -7,8 +7,15 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-public interface SchemaContextProvider {
-
-    SchemaContext getSchemaContext();
+import org.eclipse.jdt.annotation.NonNull;
 
+// FIXME: document this API contract
+public interface SchemaContextProvider {
+    /**
+     * Return the {@link SchemaContext} attached to this object.
+     *
+     * @return An SchemaContext instance.
+     * @throws IllegalStateException if the context is not available.
+     */
+    @NonNull SchemaContext getSchemaContext();
 }