Centralize union/leafref naming 21/96021/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 7 May 2021 13:41:58 +0000 (15:41 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 7 May 2021 13:45:43 +0000 (15:45 +0200)
commit0e69bfe091783b5c9502fd72663ad728f9fa0e4b
tree031323d598f4385890a7d49e67cc2e353c090947
parentfc7dea8d6b89035ff59c3c8e82a6a62e22c29dce
Centralize union/leafref naming

We have open-coded dependency between dom-codec and generator-impl where
union member naming is concerned. The entire glue here is rather funky
and flaky, make sure the construction is captured in BindingMapping and
use the magic from there.

Change-Id: I3e19f41b7bab8b8431beae37e4e712e09153e883
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/UnionTypeCodec.java
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/yang/types/AbstractTypeProvider.java
binding/mdsal-binding-spec-util/src/main/java/org/opendaylight/mdsal/binding/spec/naming/BindingMapping.java