Added Support for conversion yang binary type to java type;
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-generator-impl / src / test / resources / binary-type-test-models / binary-type-test.yang
1 module binary-type-test {
2     yang-version 1;
3     namespace "urn:binary:types:model";
4     prefix "btt";
5
6     import binary-types {
7         prefix "bin";
8         revision-date 2013-06-13;
9     }
10
11     organization "OPEN DAYLIGHT";
12     contact "http://www.opendaylight.org/";
13
14     description
15         "Simple test to test imported binary types and resolving of binary
16         type in leaf statement.";
17
18     revision "2013-06-13" {
19         reference "NO REF";
20     }
21
22     typedef binary-type {
23         type binary {
24             length 128;
25         }
26     }
27
28     container container-foo {
29         leaf binary-leaf {
30             type binary {
31                 length 128;
32             }
33         }
34
35         list binary-list {
36             key "binary-key";
37
38             leaf binary-key {
39                 type btt:binary-type;
40             }
41
42             leaf imported-simple-binary {
43                 type bin:simple-binary;
44             }
45         }
46
47         leaf imported-restrict-binary {
48             type bin:restricted-binary;
49         }
50
51         leaf-list binary-list {
52             type binary {
53                 length 256;
54             }
55         }
56     }
57 }