handling of value with ':' in URI in json serilazer
Change-Id: Ifcc36af267b77d9521b6969030bddff1d4156027
diff --git a/serializers/utils/src/main/java/org/onosproject/yang/serializers/utils/SerializersUtil.java b/serializers/utils/src/main/java/org/onosproject/yang/serializers/utils/SerializersUtil.java
index 8e136bf..0597845 100644
--- a/serializers/utils/src/main/java/org/onosproject/yang/serializers/utils/SerializersUtil.java
+++ b/serializers/utils/src/main/java/org/onosproject/yang/serializers/utils/SerializersUtil.java
@@ -199,7 +199,15 @@
private static void processSinglePathSegment(String pathSegment,
ResourceId.Builder builder) {
- if (pathSegment.contains(COLON)) {
+ String name = getPreSegment(pathSegment, EQUAL);
+ if (name != null) {
+ String c = getPreSegment(name, COLON);
+ if (c == null) {
+ processPathSegmentWithoutNamespace(pathSegment, builder);
+ } else {
+ // TODO
+ }
+ } else if (pathSegment.contains(COLON)) {
processPathSegmentWithNamespace(pathSegment, builder);
} else {
processPathSegmentWithoutNamespace(pathSegment, builder);
@@ -374,5 +382,4 @@
return newNameSpace;
}
-
}