Correct model revision 32/62732/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 5 Sep 2017 21:51:57 +0000 (23:51 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Wed, 6 Sep 2017 00:11:19 +0000 (00:11 +0000)
2017-16-05 is an invalid revision string, correct it to something
sane.

Change-Id: Ie2997888dd86ff94a89c4d0c0c6dc01f1ebe2290
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/yangtools/binding/data/codec/test/LeafrefSerializeDeserializeTest.java
binding/mdsal-binding-test-model/src/main/java/org/opendaylight/yang/gen/v1/bug8449/rev170516/ContInt32RefUnionInt32Builder.java [new file with mode: 0644]
binding/mdsal-binding-test-model/src/main/java/org/opendaylight/yang/gen/v1/bug8449/rev170516/ContRefBuilder.java [new file with mode: 0644]
binding/mdsal-binding-test-model/src/main/yang/bug8449.yang

index c50e08283e320af56bd274c5424d54b3f383fc1e..3027d88c8e016a280fb27faf902c5f10caf2ae12 100644 (file)
@@ -14,12 +14,12 @@ import javassist.ClassPool;
 import org.junit.Before;
 import org.junit.Test;
 import org.opendaylight.mdsal.binding.generator.util.JavassistUtils;
-import org.opendaylight.yang.gen.v1.bug8449.rev180405.Cont;
-import org.opendaylight.yang.gen.v1.bug8449.rev180405.Cont.Ref;
-import org.opendaylight.yang.gen.v1.bug8449.rev180405.ContBuilder;
-import org.opendaylight.yang.gen.v1.bug8449.rev180405.ContInt32;
-import org.opendaylight.yang.gen.v1.bug8449.rev180405.ContInt32.RefUnionInt32;
-import org.opendaylight.yang.gen.v1.bug8449.rev180405.ContInt32Builder;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.Cont;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.Cont.Ref;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.ContBuilder;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.ContInt32;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.ContInt32.RefUnionInt32;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.ContInt32Builder;
 import org.opendaylight.yangtools.binding.data.codec.gen.impl.StreamWriterGenerator;
 import org.opendaylight.yangtools.binding.data.codec.impl.BindingNormalizedNodeCodecRegistry;
 import org.opendaylight.yangtools.yang.binding.DataObject;
diff --git a/binding/mdsal-binding-test-model/src/main/java/org/opendaylight/yang/gen/v1/bug8449/rev170516/ContInt32RefUnionInt32Builder.java b/binding/mdsal-binding-test-model/src/main/java/org/opendaylight/yang/gen/v1/bug8449/rev170516/ContInt32RefUnionInt32Builder.java
new file mode 100644 (file)
index 0000000..7897c1b
--- /dev/null
@@ -0,0 +1,19 @@
+package org.opendaylight.yang.gen.v1.bug8449.rev170516;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.ContInt32.RefUnionInt32;
+
+/**
+ * The purpose of generated class in src/main/java for Union types is to create new instances of unions from a string representation.
+ * In some cases it is very difficult to automate it since there can be unions such as (uint32 - uint16), or (string - uint32).
+ *
+ * The reason behind putting it under src/main/java is:
+ * This class is generated in form of a stub and needs to be finished by the user. This class is generated only once to prevent
+ * loss of user code.
+ *
+ */
+public class ContInt32RefUnionInt32Builder {
+
+    public static RefUnionInt32 getDefaultInstance(java.lang.String defaultValue) {
+        throw new java.lang.UnsupportedOperationException("Not yet implemented");
+    }
+
+}
diff --git a/binding/mdsal-binding-test-model/src/main/java/org/opendaylight/yang/gen/v1/bug8449/rev170516/ContRefBuilder.java b/binding/mdsal-binding-test-model/src/main/java/org/opendaylight/yang/gen/v1/bug8449/rev170516/ContRefBuilder.java
new file mode 100644 (file)
index 0000000..96619e4
--- /dev/null
@@ -0,0 +1,19 @@
+package org.opendaylight.yang.gen.v1.bug8449.rev170516;
+import org.opendaylight.yang.gen.v1.bug8449.rev170516.Cont.Ref;
+
+/**
+ * The purpose of generated class in src/main/java for Union types is to create new instances of unions from a string representation.
+ * In some cases it is very difficult to automate it since there can be unions such as (uint32 - uint16), or (string - uint32).
+ *
+ * The reason behind putting it under src/main/java is:
+ * This class is generated in form of a stub and needs to be finished by the user. This class is generated only once to prevent
+ * loss of user code.
+ *
+ */
+public class ContRefBuilder {
+
+    public static Ref getDefaultInstance(java.lang.String defaultValue) {
+        throw new java.lang.UnsupportedOperationException("Not yet implemented");
+    }
+
+}
index b965242dcfff8548cbe4c54ffbe2d1ec1be6b4c4..f21f21e3536b109a56d1a47c0e4103a3573cbbba 100644 (file)
@@ -3,7 +3,7 @@ module bug8449 {
     namespace "bug8449";
     prefix "tst";
 
-    revision "2017-16-05" {
+    revision "2017-05-16" {
     }
 
     typedef name1-ref {