Bug 3899: Milestone: Increase test coverage for Yangtools
[yangtools.git] / yang / yang-data-impl / src / test / resources / org / opendaylight / yangtools / yang / data / impl / codec / xml / xml-doc-test.yang
1 /*
2  * Copyright (c) 2014 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 xml-doc-test {
9     yang-version 1;
10     namespace "urn:opendaylight:controller:xml:doc:test";
11     prefix "xmldt";
12
13     revision 2014-07-28 {
14        description "Initial test";
15     }
16
17     container cont {
18
19         list l {
20             key "id";
21
22             leaf id {
23                 type string;
24             }
25         }
26     }
27
28     typedef custom-instance-identifier {
29         type instance-identifier;
30     }
31
32     rpc test {
33         input {
34             leaf a {
35                 type string;
36             }
37
38             leaf ref {
39                 type custom-instance-identifier;
40             }
41         }
42     }
43
44
45 }