Bug 2332 - Binding Java API Generator -> doesn't handle 32/51132/27
authorJakub Toth <jatoth@cisco.com>
Fri, 27 Jan 2017 15:34:30 +0000 (16:34 +0100)
committerJakub Toth <jatoth@cisco.com>
Fri, 17 Feb 2017 08:16:01 +0000 (08:16 +0000)
commit9cf74a4683f1378d5c0e84fde2a88610f08240d6
tree2122da1fd57b710ae0621b6f3c4e7b68864b6568
parent55b8b0a9dfe50a20dec1c8e55e1610a4614a51be
Bug 2332 - Binding Java API Generator -> doesn't handle
non-alphabetic signs in names of enum constants, allowed by
rfc6020 though

 - find and convert non Java chars in identifiers of generated transfer
   objects, initially derived from corresponding YANG
 - this patch also fixes
   https://bugs.opendaylight.org/show_bug.cgi?id=2641

Change-Id: Ide01a2b574970397ddedaf7da09e0d28219d0616
Signed-off-by: Jakub Toth <jatoth@cisco.com>
binding2/mdsal-binding2-generator-util/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/util/AbstractBaseType.java
binding2/mdsal-binding2-generator-util/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/util/JavaIdentifier.java [new file with mode: 0644]
binding2/mdsal-binding2-generator-util/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/util/NonJavaCharsConverter.java [new file with mode: 0644]
binding2/mdsal-binding2-generator-util/src/main/java/org/opendaylight/mdsal/binding/javav2/generator/util/generated/type/builder/EnumerationBuilderImpl.java
binding2/mdsal-binding2-generator-util/src/test/java/org/opendaylight/mdsal/binding/javav2/generator/util/NonJavaCharsConverterTest.java [new file with mode: 0644]
binding2/mdsal-binding2-generator-util/src/test/java/org/opendaylight/mdsal/binding/javav2/generator/util/generated/type/builder/EnumerationBuilderImplTest.java [new file with mode: 0644]