Disambiguate generated nested enumerations
[mdsal.git] / binding / mdsal-binding-java-api-generator / src / test / resources / compilation / mdsal321 / odl-mdsal321.yang
1 module odl-mdsal {
2     namespace "urn:odl:mdsal321";
3     prefix odl;
4
5     container foo {
6         leaf foo {
7             type enumeration {
8                 enum "foo";
9             }
10             description "Enumeration defined in a leaf. This triggers a nested
11                          class with a name derived from leaf name to be created
12                          in a class from container name. Both names are 'foo'.
13                          Measures have to be taken to rename the class, so it
14                          does not clash with its enclosing class.";
15         }
16     }
17 }