Bug 6416: Fixed SchemaContextEmitter's emitIdentityrefSpecification method
[yangtools.git] / yang / yang-model-export / src / test / resources / schema-context-emitter-test / foo.xml
1 <module xmlns="urn:ietf:params:xml:ns:yang:yin:1" xmlns:foo-prefix="foo-namespace" name="foo">
2     <yang-version value="1"></yang-version>
3     <namespace uri="foo-namespace"></namespace>
4     <prefix value="foo-prefix"></prefix>
5     <organization>
6         <text></text>
7     </organization>
8     <contact>
9         <text></text>
10     </contact>
11     <revision date="2016-08-05"></revision>
12     <extension name="test-extension">
13         <status value="current"></status>
14     </extension>
15     <feature name="test-feature">
16         <status value="current"></status>
17         <description>
18             <text>test-feature description</text>
19         </description>
20         <reference>
21             <text>test-feature reference</text>
22         </reference>
23     </feature>
24     <identity name="test-identity">
25         <base name="test-base-identity"></base>
26         <status value="current"></status>
27         <description>
28             <text>test-identity description</text>
29         </description>
30         <reference>
31             <text>test-identity reference</text>
32         </reference>
33     </identity>
34     <identity name="test-base-identity">
35         <status value="current"></status>
36     </identity>
37     <typedef name="test-uint32-typedef">
38         <type name="uint32">
39             <range value="50..100">
40                 <error-message>
41                     <value>The argument is out of bounds &lt;50, 100&gt;</value>
42                 </error-message>
43                 <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
44             </range>
45         </type>
46         <units name="seconds"></units>
47         <status value="current"></status>
48     </typedef>
49     <typedef name="test-int32-typedef">
50         <type name="int32">
51             <range value="50..100">
52                 <error-message>
53                     <value>The argument is out of bounds &lt;50, 100&gt;</value>
54                 </error-message>
55                 <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
56             </range>
57         </type>
58         <status value="current"></status>
59     </typedef>
60     <typedef name="test-leafref-typedef">
61         <type name="leafref">
62             <path value="../leafref-target-leaf"></path>
63         </type>
64         <status value="current"></status>
65     </typedef>
66     <typedef name="test-iid-typedef">
67         <type name="instance-identifier">
68             <require-instance value="false"></require-instance>
69         </type>
70         <status value="current"></status>
71     </typedef>
72     <grouping name="test-grouping-1">
73         <status value="current"></status>
74         <leaf name="test-leaf-1">
75             <type name="string"></type>
76             <default value="def-val"></default>
77             <config value="true"></config>
78             <mandatory value="false"></mandatory>
79             <status value="current"></status>
80         </leaf>
81         <leaf-list name="test-leaf-list">
82             <type name="string"></type>
83             <config value="false"></config>
84             <min-elements value="0"></min-elements>
85             <max-elements value="2147483647"></max-elements>
86             <ordered-by value="user"></ordered-by>
87             <status value="current"></status>
88         </leaf-list>
89         <list name="test-list">
90             <key value="key-leaf-1 key-leaf-2"></key>
91             <config value="true"></config>
92             <min-elements value="5"></min-elements>
93             <max-elements value="2147483647"></max-elements>
94             <ordered-by value="system"></ordered-by>
95             <status value="current"></status>
96             <leaf name="key-leaf-1">
97                 <type name="string"></type>
98                 <config value="true"></config>
99                 <mandatory value="false"></mandatory>
100                 <status value="current"></status>
101             </leaf>
102             <leaf name="key-leaf-2">
103                 <type name="string"></type>
104                 <config value="true"></config>
105                 <mandatory value="false"></mandatory>
106                 <status value="current"></status>
107             </leaf>
108         </list>
109         <container name="test-container-2">
110             <presence value="false"></presence>
111             <config value="false"></config>
112             <status value="current"></status>
113         </container>
114     </grouping>
115     <grouping name="test-grouping-2">
116         <status value="current"></status>
117         <anyxml name="test-anyxml-2">
118             <config value="false"></config>
119             <mandatory value="false"></mandatory>
120             <status value="current"></status>
121         </anyxml>
122         <choice name="test-choice-2">
123             <config value="false"></config>
124             <mandatory value="false"></mandatory>
125             <status value="current"></status>
126             <case name="first">
127                 <status value="current"></status>
128                 <leaf name="first-case-leaf">
129                     <type name="string">
130                         <length value="10|15">
131                             <error-message>
132                                 <value>The argument is out of bounds &lt;10, 10&gt;</value>
133                             </error-message>
134                             <error-app-tag value="length-out-of-specified-bounds"></error-app-tag>
135                         </length>
136                     </type>
137                     <config value="false"></config>
138                     <mandatory value="false"></mandatory>
139                     <status value="current"></status>
140                 </leaf>
141             </case>
142             <case name="second">
143                 <status value="current"></status>
144                 <leaf name="second-case-leaf">
145                     <type name="int32">
146                         <range value="10|15">
147                             <error-message>
148                                 <value>The argument is out of bounds &lt;10, 10&gt;</value>
149                             </error-message>
150                             <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
151                         </range>
152                     </type>
153                     <config value="false"></config>
154                     <mandatory value="false"></mandatory>
155                     <status value="current"></status>
156                 </leaf>
157             </case>
158         </choice>
159     </grouping>
160     <anyxml name="test-anyxml">
161         <when condition="foo != 'bar'"></when>
162         <must condition="bar != 'foo'"></must>
163         <config value="true"></config>
164         <mandatory value="false"></mandatory>
165         <status value="current"></status>
166         <foo-prefix:test-extension></foo-prefix:test-extension>
167     </anyxml>
168     <leaf name="leafref-target-leaf">
169         <type name="string"></type>
170         <config value="true"></config>
171         <mandatory value="false"></mandatory>
172         <status value="current"></status>
173     </leaf>
174     <container name="test-container-1">
175         <must condition="bar != 'foo'"></must>
176         <must condition="bar != 'foo'"></must>
177         <presence value="false"></presence>
178         <config value="true"></config>
179         <status value="current"></status>
180     </container>
181     <container name="test-container-3">
182         <presence value="false"></presence>
183         <config value="true"></config>
184         <status value="current"></status>
185         <choice name="test-choice">
186             <config value="true"></config>
187             <mandatory value="false"></mandatory>
188             <status value="current"></status>
189             <case name="a">
190                 <status value="current"></status>
191                 <leaf name="case-a-leaf">
192                     <type name="int32"></type>
193                     <config value="true"></config>
194                     <mandatory value="false"></mandatory>
195                     <status value="current"></status>
196                 </leaf>
197             </case>
198             <case name="b">
199                 <status value="current"></status>
200                 <leaf name="case-b-leaf">
201                     <type name="decimal64">
202                         <fraction-digits value="3"></fraction-digits>
203                         <range value="-9223372036854775.808..9223372036854775.807">
204                             <error-message>
205                                 <value>The argument is out of bounds &lt;-9223372036854775.808, 9223372036854775.807&gt;</value>
206                             </error-message>
207                             <error-app-tag value="range-out-of-specified-bounds"></error-app-tag>
208                             <reference>
209                                 <text>https://tools.ietf.org/html/rfc6020#section-9.3.4</text>
210                             </reference>
211                         </range>
212                     </type>
213                     <config value="true"></config>
214                     <mandatory value="false"></mandatory>
215                     <status value="current"></status>
216                 </leaf>
217             </case>
218         </choice>
219         <leaf name="bits-leaf">
220             <type name="bits">
221                 <bit name="one">
222                     <position value="1"></position>
223                     <status value="current"></status>
224                 </bit>
225                 <bit name="two">
226                     <position value="2"></position>
227                     <status value="current"></status>
228                 </bit>
229             </type>
230             <config value="true"></config>
231             <mandatory value="false"></mandatory>
232             <status value="current"></status>
233         </leaf>
234         <leaf name="identityref-leaf">
235             <type name="identityref">
236                 <base name="test-base-identity"></base>
237             </type>
238             <config value="true"></config>
239             <mandatory value="false"></mandatory>
240             <status value="current"></status>
241         </leaf>
242     </container>
243     <augment target-node="/test-container-3/test-choice">
244         <status value="current"></status>
245         <case name="c">
246             <status value="current"></status>
247             <leaf name="case-c-leaf">
248                 <type name="string"></type>
249                 <config value="true"></config>
250                 <mandatory value="false"></mandatory>
251                 <status value="current"></status>
252             </leaf>
253         </case>
254     </augment>
255     <augment target-node="/test-container-1">
256         <status value="current"></status>
257         <uses name="test-grouping-1">
258             <refine target-node="test-list">
259                 <config value="true"></config>
260                 <min-elements value="5"></min-elements>
261                 <max-elements value="2147483647"></max-elements>
262             </refine>
263             <refine target-node="test-leaf-list">
264                 <config value="false"></config>
265                 <min-elements value="0"></min-elements>
266                 <max-elements value="2147483647"></max-elements>
267             </refine>
268             <refine target-node="test-leaf-1">
269                 <default value="def-val"></default>
270                 <config value="true"></config>
271                 <mandatory value="false"></mandatory>
272             </refine>
273             <refine target-node="test-container-2">
274                 <presence value="false"></presence>
275                 <config value="false"></config>
276             </refine>
277             <augment target-node="test-container-2">
278                 <status value="current"></status>
279                 <leaf name="test-leaf-2">
280                     <type name="string"></type>
281                     <config value="true"></config>
282                     <mandatory value="false"></mandatory>
283                     <status value="current"></status>
284                 </leaf>
285             </augment>
286         </uses>
287     </augment>
288     <rpc name="test-rpc">
289         <status value="current"></status>
290         <grouping name="rpc-grouping">
291             <status value="current"></status>
292             <leaf name="rpc-grouping-leaf">
293                 <type name="string"></type>
294                 <config value="true"></config>
295                 <mandatory value="false"></mandatory>
296                 <status value="current"></status>
297             </leaf>
298         </grouping>
299         <input>
300             <leaf name="input-leaf">
301                 <type name="string"></type>
302                 <config value="true"></config>
303                 <mandatory value="false"></mandatory>
304                 <status value="current"></status>
305             </leaf>
306         </input>
307         <output>
308             <leaf name="output-leaf">
309                 <type name="string"></type>
310                 <config value="true"></config>
311                 <mandatory value="false"></mandatory>
312                 <status value="current"></status>
313             </leaf>
314         </output>
315     </rpc>
316     <notification name="test-notification">
317         <status value="current"></status>
318         <uses name="test-grouping-2">
319             <refine target-node="test-choice-2">
320                 <config value="false"></config>
321                 <mandatory value="false"></mandatory>
322             </refine>
323             <refine target-node="test-anyxml-2">
324                 <config value="false"></config>
325                 <mandatory value="false"></mandatory>
326             </refine>
327         </uses>
328     </notification>
329 </module>