Generate legacy value contructors for all classes 19/84219/4
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 5 Sep 2019 13:11:38 +0000 (15:11 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 6 Sep 2019 11:10:54 +0000 (13:10 +0200)
commit9877defab78a0ea397c0acfc8386c2f7bc357d9f
tree79834d50c36d7358c2ec7f70ace547b35c528799
parent238b755b457a5e1fd9b85cd2fe8a9aea1db82322
Generate legacy value contructors for all classes

This expands legacy constructor compatibility to also include
Key classes, not only value wrappers. The codegen parts is relatively
straightforward.

IdentitiableItemCodec is coded on the assumption there are only
two constructors -- one copy and one all-value, which is now violated.

Hence we update IdentifiableItemCodec to also ignore any constructors
which are marked as deprecated.

JIRA: MDSAL-330
Change-Id: Ie23ba8b3788b320b2d11e263c9af228b4c2e41a9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/IdentifiableItemCodec.java
binding/mdsal-binding-java-api-generator/src/main/java/org/opendaylight/mdsal/binding/java/api/generator/ClassTemplate.xtend