BUG-4638: add more type checking methods 73/29873/2
authorRobert Varga <rovarga@cisco.com>
Wed, 18 Nov 2015 17:08:49 +0000 (18:08 +0100)
committerTony Tkacik <ttkacik@cisco.com>
Thu, 19 Nov 2015 18:41:41 +0000 (18:41 +0000)
commitf305ed0b98fc14c78cda17178811411bbdd86ff0
tree27ae84c2d1eff28fbc45de84497660dde76c2f8f
parent23b8b21ecc698f89ad8874725fd6818d2d71f079
BUG-4638: add more type checking methods

Update the both BaseTypes and DerivedTypes should have the uint
checkers, with the difference being that BaseTypes do not perform a
recursive lookup. That means that BaseTypes#isInt8() will return true
only for 'type int8;', not derived types.

Change-Id: I9c391e1f63c661e65c2e5d3a241465f1c326878d
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/BaseTypes.java
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/type/DerivedTypes.java