Improve EnumerationCodec 51/69351/29
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 11 Mar 2018 15:25:40 +0000 (16:25 +0100)
committerJie Han <han.jie@zte.com.cn>
Thu, 22 Mar 2018 23:30:07 +0000 (23:30 +0000)
commitedacc77814be2f058972dd99480ecd8197746f04
tree0347a224e780c9072bc93158c7c29fece51dceb9
parentf4f89b9bd996a82844f97ec5556b7d72da0485ce
Improve EnumerationCodec

Now that we have proper information from enumerations, we can use
build the codec map as known at generation time and check it against
the type we are receiving, adding proper warnings.

JIRA: MDSAL-317
Change-Id: Ia5bd3d73e44eba2568818b578bc44985fafb6294
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/EnumerationCodec.java
binding/mdsal-binding-dom-codec/src/test/java/org/opendaylight/mdsal/binding/dom/codec/impl/EnumerationCodecTest.java