SchemaContext extends ContainerSchemaNode
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / SchemaContext.java
index 1555bbb38ff5b12cf149cea73310d63bc87fcd85..d800d15a26a664c06cbc12973f949a7b54206dd2 100644 (file)
@@ -11,12 +11,16 @@ import java.net.URI;
 import java.util.Date;
 import java.util.Set;
 
+import org.opendaylight.yangtools.yang.common.QName;
+
 /**
  * The interface contains the methods for manipulating all the top level context
  * data (data from all red modules) like YANG notifications, extensions,
  * operations...
  */
-public interface SchemaContext {
+public interface SchemaContext extends ContainerSchemaNode {
+
+    public static final QName NAME = QName.create(URI.create("urn:ietf:params:xml:ns:netconf:base:1.0"), null, "data");
 
     /**
      * Returns data schema node instances which represents direct subnodes (like
@@ -88,5 +92,7 @@ public interface SchemaContext {
      * @return module instance which has namespace equal to the
      *         <code>namespace</code> or <code>null</code> in other cases
      */
-    Module findModuleByNamespace(final URI namespace);
+    Set<Module> findModuleByNamespace(final URI namespace);
+    
+    Module findModuleByNamespaceAndRevision(final URI namespace,final Date revision);
 }