Simplify check for tree/node match 72/28672/4
authorRobert Varga <robert.varga@pantheon.sk>
Wed, 21 Oct 2015 23:16:18 +0000 (01:16 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 23 Nov 2015 08:19:01 +0000 (08:19 +0000)
commitcedc0c19804d38d8ab03fbed3c0aa928df639c16
tree124253d62a5e77984428d1bf8b4087f6b56b53b9
parentbba1e8b3220d8013734b453cf2fda6f0baccdb7d
Simplify check for tree/node match

The check can be inverted to check for:

All nodes belong in TreeType.OPERATIONAL. Nodes which are in
TreeType.CONFIGURATION return this as a property.

Which can be written as a simple expression. Also expand javadoc a bit.

Change-Id: Ie10d9b4bc3f9f1e2d08f592cfec1bf4bc92ea21b
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/SchemaAwareApplyOperation.java