[ONOS-4941][ONOS-4883][ONOS-4979]Grouping and uses interfile linking issue + defect fix
Change-Id: I5e8145f05d3ef570d4ecbbe885c93de172de0ea3
diff --git a/utils/yangutils/datamodel/src/main/java/org/onosproject/yangutils/datamodel/YangModule.java b/utils/yangutils/datamodel/src/main/java/org/onosproject/yangutils/datamodel/YangModule.java
index f9b1e87..8e5de36 100644
--- a/utils/yangutils/datamodel/src/main/java/org/onosproject/yangutils/datamodel/YangModule.java
+++ b/utils/yangutils/datamodel/src/main/java/org/onosproject/yangutils/datamodel/YangModule.java
@@ -231,7 +231,12 @@
private List<YangResolutionInfo> augmentResolutionList;
/**
- * extension list.
+ * Compiler annotation list.
+ */
+ private List<YangCompilerAnnotation> compilerAnnotationList;
+
+ /**
+ * Extension list.
*/
private List<YangExtension> extensionList;
@@ -248,6 +253,7 @@
leafrefResolutionList = new LinkedList<>();
baseResolutionList = new LinkedList<>();
identityrefResolutionList = new LinkedList<>();
+ compilerAnnotationList = new LinkedList<>();
importList = new LinkedList<YangImport>();
includeList = new LinkedList<YangInclude>();
listOfLeaf = new LinkedList<YangLeaf>();
@@ -563,6 +569,33 @@
}
/**
+ * Adds compiler annotation in compiler-annotation list.
+ *
+ * @param compilerAnnotation the compiler-annotation to be added
+ */
+ public void addCompilerAnnotation(YangCompilerAnnotation compilerAnnotation) {
+ getCompilerAnnotationList().add(compilerAnnotation);
+ }
+
+ /**
+ * Returns the compiler annotation list.
+ *
+ * @return the compiler annotation list
+ */
+ public List<YangCompilerAnnotation> getCompilerAnnotationList() {
+ return compilerAnnotationList;
+ }
+
+ /**
+ * Sets the compiler-annotation list.
+ *
+ * @param compilerAnnotationList the list of compiler-annotation
+ */
+ public void setCompilerAnnotationList(List<YangCompilerAnnotation> compilerAnnotationList) {
+ this.compilerAnnotationList = compilerAnnotationList;
+ }
+
+ /**
* Adds extension in extension list.
*
* @param extension the extension to be added