Deprecate DataNodeIterator 92/86892/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 14 Jan 2020 14:56:18 +0000 (15:56 +0100)
committerRobert Varga <nite@hq.sk>
Tue, 14 Jan 2020 17:22:08 +0000 (17:22 +0000)
commit914a36764f9cf59f376ad40e917e9f08d85a5829
treed067bdb4d6c41288d737af2f4cdc3b8a2565a53b
parentca5fbf69c4b2ab1df5ec2632621c8f73eaf126d8
Deprecate DataNodeIterator

This class is used in two places only, where each of the places
only needs specific type of nodes. Expose utility methods for
those two cases and a general tranverser method from SchemaNodeUtils
and deprecate DataNodeIterator.

Change-Id: I4fdc47e16fe2ea7e6f042bb80fe869657ee93fac
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit adf41b25c82b005f66a0de86a8e3c8a8a455cf76)
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/DataNodeAggregator.java [new file with mode: 0644]
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/DataNodeIterator.java
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaNodeUtils.java