Propagate EffectiveModelContext to more places
[yangtools.git] / yang / yang-data-api / src / main / java / org / opendaylight / yangtools / yang / data / api / schema / tree / DataTreeSnapshot.java
index e8c3141946cf889c382f4e450b44326b84e4ea6c..3197e9814ba42582f06d91735618ed5611284886 100644 (file)
@@ -8,15 +8,16 @@
 package org.opendaylight.yangtools.yang.data.api.schema.tree;
 
 import java.util.Optional;
+import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
-import org.opendaylight.yangtools.yang.model.api.SchemaContextProvider;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContextProvider;
 
 /**
  * Read-only snapshot of a {@link DataTree}. The snapshot is stable and isolated, e.g. data tree changes occurring after
  * the snapshot has been taken are not visible through the snapshot.
  */
-public interface DataTreeSnapshot extends SchemaContextProvider {
+public interface DataTreeSnapshot extends EffectiveModelContextProvider {
     /**
      * Read a particular node from the snapshot.
      *
@@ -31,5 +32,5 @@ public interface DataTreeSnapshot extends SchemaContextProvider {
      *
      * @return A new data tree modification
      */
-    DataTreeModification newModification();
+    @NonNull DataTreeModification newModification();
 }