Cleaned up Java Binding code from YANG Tools
[mdsal.git] / binding / mdsal-binding-test-model / src / main / yang / opendaylight-yangtools-union-test.yang
1 module opendaylight-yangtools-union-test {
2
3     namespace "urn:opendaylight:params:xml:ns:yang:yangtools:test:union";
4     prefix union-test;
5
6
7     description
8         "This module contains a collection of YANG definitions used for
9         some test cases.";
10
11     revision "2015-01-21" {
12         description
13         "Test model for testing union data types.";
14     }
15
16     typedef lowest-level1 {
17         type string;
18     }
19
20     typedef lowest-level2 {
21         type string;
22     }
23
24     typedef non-union-test-type {
25         type string;
26     }
27
28     typedef union-test-type {
29         type union {
30             type lowest-level1;
31             type lowest-level2;
32         }
33     }
34
35     typedef top-level {
36         type union {
37             type non-union-test-type;
38             type union-test-type;
39         }
40     }
41
42     container wrapper {
43         leaf wrap {
44             type top-level;
45         }
46     }
47 }