Generate fields for all Identityrefs in an Union binding class 63/100863/15
authorOleksandrZharov <Oleksandr.Zharov@pantheon.tech>
Thu, 28 Apr 2022 11:47:27 +0000 (13:47 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 13 Jun 2022 13:22:41 +0000 (13:22 +0000)
commitd15229d7b32a7a281d00d06511ee5491ad822599
tree43a6cf3ae8f8a0d288396ab9238bd85bd512c2ad
parenta70b9545aad203224d971f1867138e5d97599617
Generate fields for all Identityrefs in an Union binding class

Changed property name in generator for identityrefs so it will
generate variable names based on type of identityref and not
identityref_ like was before. With that it will generate fields
for all identityrefs that we have in union and methods for them.

Updated related test and added another one to cover the change.

JIRA: MDSAL-740
Change-Id: I11735655ab407f37774cb1b5ffa61955abaee37c
Signed-off-by: OleksandrZharov <Oleksandr.Zharov@pantheon.tech>
Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/UnionTypeWithMultipleIdentityrefsTest.java [new file with mode: 0644]
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/reactor/AbstractTypeObjectGenerator.java
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/mdsal/binding/java/api/generator/UnionWithIdentityrefTest.java
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/mdsal/binding/java/api/generator/UnionWithMultipleIdentityrefsTest.java [new file with mode: 0644]
binding/mdsal-binding-java-api-generator/src/test/resources/compilation/union-with-multiple-identityrefs/union-with-multi-identityrefs.yang [new file with mode: 0644]
binding/mdsal-binding-test-model/src/main/yang/union-with-multiple-identityrefs.yang [new file with mode: 0644]