YANG construct collision detection framework added
Change-Id: I1458f9e3192641f3f90c444798c31a64536ffa5d
diff --git a/src/main/java/org/onosproject/yangutils/datamodel/YangImport.java b/src/main/java/org/onosproject/yangutils/datamodel/YangImport.java
index 83f978e..a6e81f0 100644
--- a/src/main/java/org/onosproject/yangutils/datamodel/YangImport.java
+++ b/src/main/java/org/onosproject/yangutils/datamodel/YangImport.java
@@ -17,7 +17,7 @@
import org.onosproject.yangutils.datamodel.exceptions.DataModelException;
import org.onosproject.yangutils.parser.Parsable;
-import org.onosproject.yangutils.parser.ParsableDataType;
+import org.onosproject.yangutils.utils.YangConstructType;
/*
* Reference:RFC 6020.
@@ -94,7 +94,7 @@
/**
* Get the imported module name.
*
- * @return the module name.
+ * @return the module name
*/
public String getModuleName() {
return name;
@@ -113,7 +113,7 @@
* Get the prefix used to identify the entities from the imported module.
*
* @return the prefix used to identify the entities from the imported
- * module.
+ * module
*/
public String getPrefixId() {
return prefixId;
@@ -122,7 +122,7 @@
/**
* Set prefix identifier.
*
- * @param prefixId set the prefix identifier of the imported module.
+ * @param prefixId set the prefix identifier of the imported module
*/
public void setPrefixId(String prefixId) {
this.prefixId = prefixId;
@@ -131,7 +131,7 @@
/**
* Get the revision of the imported module.
*
- * @return the revision of the imported module.
+ * @return the revision of the imported module
*/
public String getRevision() {
return revision;
@@ -140,7 +140,7 @@
/**
* Set the revision of the imported module.
*
- * @param rev set the revision of the imported module.
+ * @param rev set the revision of the imported module
*/
public void setRevision(String rev) {
revision = rev;
@@ -152,8 +152,8 @@
* @return returns IMPORT_DATA
*/
@Override
- public ParsableDataType getParsableDataType() {
- return ParsableDataType.IMPORT_DATA;
+ public YangConstructType getYangConstructType() {
+ return YangConstructType.IMPORT_DATA;
}
/**