Drop dependency on javax.xml.bind
[yangtools.git] / yang / yang-data-impl / src / test / resources / odl-datastore-test.yang
index 17541fecab02c62f35c7a64cd679ad3ca52849e6..43143f20cb8b59433d1f36a2c2b2270def94eb36 100644 (file)
@@ -2,13 +2,56 @@ module odl-datastore-test {
     yang-version 1;
     namespace "urn:opendaylight:params:xml:ns:yang:controller:md:sal:dom:store:test";
     prefix "store-test";
-    
+
     revision "2014-03-13" {
         description "Initial revision.";
     }
 
+    container non-presence {
+        description "Deep structure of (structural) nodes to test structural ";
+
+        leaf name {
+            type string;
+        }
+
+        choice deep-choice {
+            list a-list {
+                key "a-name";
+
+                leaf a-name {
+                    type string;
+                }
+            }
+
+            container b-container {
+                leaf b-name {
+                    type string;
+                }
+            }
+        }
+    }
+
     container test {
+        presence true;
+        choice choice1 {
+            case case1 {
+                leaf case1-leaf1 {
+                    type string;
+                    config false;
+                }
+            }
+            case case2 {
+                container case2-cont {
+                    leaf case2-leaf1 {
+                        type string;
+                        config false;
+                    }
+                }
+            }
+        }
+
         list outer-list {
+
             key id;
             leaf id {
                 type uint16;
@@ -27,8 +70,9 @@ module odl-datastore-test {
                         type string;
                     }
                }
-           }
-           list inner-list {
+            }
+            list inner-list {
+                config false;
                 key name;
                 leaf name {
                     type string;
@@ -37,6 +81,23 @@ module odl-datastore-test {
                     type string;
                 }
             }
+
+            list inner-list2 {
+                key name;
+                leaf name {
+                    type string;
+                }
+                leaf value {
+                    type string;
+                    config false;
+                }
+            }
+        }
+
+        container inner-container {
+            leaf value {
+                type string;
+            }
         }
     }
-}
\ No newline at end of file
+}