Bug 1743: Fixed resolving of Identityrefs in xml. 02/10902/1
authorLukas Sedlak <lsedlak@cisco.com>
Mon, 8 Sep 2014 12:46:42 +0000 (14:46 +0200)
committerLukas Sedlak <lsedlak@cisco.com>
Mon, 8 Sep 2014 12:46:42 +0000 (14:46 +0200)
commitd61b5ffeceb6759687d4a57e2ba75a73997ee550
tree81cccc83333ef286892e5be187e8228511b6abb8
parent0a46821a06885255416654294cff5c932af337c4
Bug 1743: Fixed resolving of Identityrefs in xml.

Fixed resolving of Identityrefs when DataSchemaNode is defined as LeafListSchemaNode.
This is bugfix for: https://bugs.opendaylight.org/show_bug.cgi?id=1743

The overloaded methods toSimpleNodeWithType were refactored with resolveValueFromSchemaType method.
No code duplicity anymore which should prevent similiar bugs in future.

Change-Id: I6d974059369b46470ea81bdfc7694157d09bd2ed
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/codec/xml/XmlDocumentUtils.java