Merge "Bug 1372 - toString methods in generated classes"
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / Module.java
index 22456181507f07da9b16c3ff7754ae0a9f489e07..23eb68ef1de1cdc268cc06da40b57d2c47a0ab6f 100644 (file)
@@ -10,6 +10,8 @@ package org.opendaylight.yangtools.yang.model.api;
 import java.util.List;
 import java.util.Set;
 
+import javax.annotation.concurrent.Immutable;
+
 /**
  * This interface contains the methods for getting the data from the YANG
  * module.<br />
@@ -54,10 +56,8 @@ import java.util.Set;
 
     </code>
  */
-
+@Immutable
 public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIdentifier {
-
-
     /**
      * Returns the prefix of the module
      *
@@ -210,4 +210,9 @@ public interface Module extends DataNodeContainer, SourceStreamAware, ModuleIden
      */
     List<UnknownSchemaNode> getUnknownSchemaNodes();
 
+    /**
+     * Get yang source.
+     */
+    String getSource();
+
 }