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-types@2013-06-13.yang
1  module binary-types {
2
3    namespace "urn:binary:types";
4    prefix "bin";
5
6    organization "OPEN DAYLIGHT";
7
8    contact "http://www.opendaylight.org/";
9
10    description "Stand alone binary types declaration file for testing
11    purposes only.";
12
13    revision 2013-06-13 {
14      description
15       "Initial revision.";
16      reference
17       "NO REFERENCE";
18    }
19
20    /*** collection of protocol field related types ***/
21
22    typedef simple-binary {
23      type binary;
24    }
25
26    typedef restricted-binary {
27      type binary {
28         length 24;
29      }
30    }
31
32    typedef composite-binary {
33      type union {
34         type bin:simple-binary;
35         type bin:restricted-binary;
36      }
37    }
38  }