Expand CompatUtils to handle leaf-lists 23/74623/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Jul 2018 05:21:55 +0000 (07:21 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 30 Jul 2018 05:34:25 +0000 (07:34 +0200)
commit1c444bb73ea2b53c299a8e779d1e804a5de1f05e
tree67724b50e2c672a3ef3f2374e8f39cacc4008d4e
parent7aa7e29cda8726a9f05ee30a38be17a120e77644
Expand CompatUtils to handle leaf-lists

The rules outlined in compatLeafType are applicable to leaf-lists,
too. Allow leaf-list types to be queried by adding a TypedDataSchemaNode
variant as compatType().

Change-Id: Ia6a3e4cf198069137c470008fde934de64b96996
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/CompatUtils.java