Bug 1443: Added support for misplaced augmentations.
authorTony Tkacik <ttkacik@cisco.com>
Tue, 26 Aug 2014 11:35:22 +0000 (13:35 +0200)
committerRobert Varga <rovarga@cisco.com>
Tue, 26 Aug 2014 21:45:13 +0000 (21:45 +0000)
commitf1d3deec63908e111377da96e31aa5fb2cc0b503
treede41b65844404ca6812804be172bf2fb71fab69b
parent28088d0864f83ac430cabc5a60cdc85cd7d66794
Bug 1443: Added support for misplaced augmentations.

Binding Specification reuses elements inside groupings
as part of normal data tree. Augmentations and augmented
cases could be copied by user using copy builders
and may be used at incorrect place, where augmentation
with same data is present.

Binding Data Codec will treat this augmentations as
same, if augmentation definining same data subtree
is present at real location.

Change-Id: Ie232ef9b5e5bbe84f5562bfce612d8ea03b9a9a5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
code-generator/binding-data-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/ChoiceNodeCodecContext.java
code-generator/binding-data-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/DataObjectCodecContext.java
code-generator/binding-data-codec/src/test/java/org/opendaylight/yangtools/binding/data/codec/test/AugmentationSubstitutionTest.java [new file with mode: 0644]
code-generator/binding-data-codec/src/test/java/org/opendaylight/yangtools/binding/data/codec/test/CaseSubstitutionTest.java [new file with mode: 0644]
yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/BindingReflections.java