*/
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();
}