YANG construct collision detection framework added
Change-Id: I1458f9e3192641f3f90c444798c31a64536ffa5d
diff --git a/utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/parserutils/ListenerErrorType.java b/utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/parserutils/ListenerErrorType.java
index 1d061d7..32620d5 100644
--- a/utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/parserutils/ListenerErrorType.java
+++ b/utils/yangutils/src/main/java/org/onosproject/yangutils/parser/impl/parserutils/ListenerErrorType.java
@@ -60,6 +60,11 @@
INVALID_CONTENT(),
/**
+ * Represents that the identifier collision is detected.
+ */
+ IDENTIFIER_COLLISION(),
+
+ /**
* Represents that some of earlier parsed data is not handled correctly.
*/
UNHANDLED_PARSED_DATA();
@@ -67,8 +72,8 @@
/**
* Returns the message corresponding to listener error type.
*
- * @param errorType enum value for type of error.
- * @return message corresponding to listener error type.
+ * @param errorType enum value for type of error
+ * @return message corresponding to listener error type
*/
public static String getErrorType(ListenerErrorType errorType) {
@@ -87,6 +92,8 @@
return "Duplicate";
case INVALID_CONTENT:
return "Invalid content in";
+ case IDENTIFIER_COLLISION:
+ return "Identifier collision detected for";
case UNHANDLED_PARSED_DATA:
return "Unhandled parsed data at";
default: