BUG-4638: fix resolveLeafSchemaNodeAsMethod() 10/30010/7
authorRobert Varga <rovarga@cisco.com>
Fri, 20 Nov 2015 17:27:36 +0000 (18:27 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 30 Nov 2015 16:13:14 +0000 (16:13 +0000)
commit1a9c0114c393e12547459d564d1a92fe69178a07
tree581d473c4e7fa2a29fd50d8ae746ceda325bee22
parent7b71f56687b915be709e3b3ac4e45dfc442f1d79
BUG-4638: fix resolveLeafSchemaNodeAsMethod()

Deal with new parser's way of emitting types for leaf and not using
ExtendedType. Backward compatibility with the old parser is maintained.

For new parser, the input into code generation will change in case an
the leaf defines a default value: the type will have a default value and
its schema path will match the leaf.

Code generation will need to deal with this and emit the same code
snippets, effectively fudging the inner restricted type. That will be
addressed in a follow-up patch.

Change-Id: If66305d2716a138628ba84e651bb280d588cb773
Signed-off-by: Robert Varga <rovarga@cisco.com>
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.java