Add ability to get yang sources from SchemaContext.
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / Module.java
index d6c4966c70c62d988081110d27b6283f62c9119b..16fda82ed4761af26b7c381b54a4fdb32f4ebe8e 100644 (file)
@@ -7,8 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.model.api;
 
-import java.net.URI;
-import java.util.Date;
 import java.util.List;
 import java.util.Set;
 
@@ -57,33 +55,8 @@ import java.util.Set;
     </code>
  */
 
-public interface Module extends DataNodeContainer, SourceStreamAware {
+public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIdentifier {
 
-    /**
-     * Returns the namespace of the module which is specified as argument of
-     * YANG {@link Module <b><font color="#00FF00">namespace</font></b>}
-     * keyword.
-     *
-     * @return URI format of the namespace of the module
-     */
-    URI getNamespace();
-
-    /**
-     * Returns the name of the module which is specified as argument of YANG
-     * {@link Module <b><font color="#FF0000">module</font></b>} keyword
-     *
-     * @return string with the name of the module
-     */
-    String getName();
-
-    /**
-     * Returns the revision date for the module.
-     *
-     * @return date of the module revision which is specified as argument of
-     *         YANG {@link Module <b><font color="#339900">revison</font></b>}
-     *         keyword
-     */
-    Date getRevision();
 
     /**
      * Returns the prefix of the module