Introduce top-level pom file.
[mdsal.git] / code-generator / binding-java-api-generator / src / test / resources / compilation / leaf-return-types / test.yang
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 module test {
9     yang-version 1;
10     namespace "urn:opendaylight:test";
11     prefix "t";
12
13     revision "2013-10-08" {
14     }
15
16     container nodes {
17         leaf id-binary {
18             type binary {
19                 length 1..10;
20             }
21         }
22         leaf id-bits {
23             type bits {
24                 bit ctrl;
25                 bit alt {
26                     position 5;
27                 }
28                 bit delete;
29             }
30         }
31         leaf id-boolean {
32             type boolean;
33         }
34         leaf id-decimal64 {
35             type decimal64 {
36                 fraction-digits 4;
37                 range "1.5..5.5";
38             }
39         }
40         leaf id-empty {
41             type empty;
42         }
43         leaf id-enumeration {
44             type enumeration {
45                 enum zero;
46                 enum one;
47                 enum seven {
48                     value 7;
49                 }
50             }
51         }
52         leaf id-identityref {
53             type identityref {
54                 base alg;
55             }
56         }
57         leaf id-instance-identifier {
58             type instance-identifier;
59         }
60         leaf id-8 {
61             type int8;
62         }
63         leaf id-16 {
64             type int16;
65         }
66         leaf id-32 {
67             type int32;
68         }
69         leaf id-64 {
70             type int64;
71         }
72         leaf id-leafref {
73             type leafref {
74                 path "/nodes/id-64";
75             }
76         }
77         leaf id-string {
78             type string;
79         }
80         leaf id-u8 {
81             type uint8;
82         }
83         leaf id-u16 {
84             type uint16;
85         }
86         leaf id-u32 {
87             type uint32;
88         }
89         leaf id-u64 {
90             type uint64;
91         }
92         leaf id-union {
93             type union {
94                 type string;
95                 type binary;
96             }
97         }
98     }
99
100     identity alg {
101     }
102
103 }