Bug 2872 - Generated Java Enumerations should contain mapping to the string counter... 33/39733/5
authorRyan Goulding <ryandgoulding@gmail.com>
Thu, 2 Jun 2016 17:57:23 +0000 (13:57 -0400)
committerRobert Varga <nite@hq.sk>
Mon, 20 Jun 2016 08:11:51 +0000 (08:11 +0000)
commitcc6614973087f96842b5cd1e6711ac95c60abf72
tree49c49e3ba15c7f3ed83ac7efd359ac21405186ee
parent4289d94a05680dcef581db627914f6c05b723fee
Bug 2872 - Generated Java Enumerations should contain mapping to the string counter part

The definition of EnumEffectiveStatementImpl.getName() was changed to return
the "raw" name attribute from the input yang file.  The mapping is moved to
mdsal through a corresponding change:

https://git.opendaylight.org/gerrit/#/c/39734/

A test is added to ensure that the name attribute is provided in its raw,
unadulterated context.

Change-Id: I2f2690251f21b9a3f8f4960f2f8c2ab1cdce6321
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/type/EnumEffectiveStatementImpl.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug2872Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug2872/bug2872.yang [new file with mode: 0644]