BUG-1590: introduce PathArgument.toRelativeString() and use it 07/10107/2
authorRobert Varga <rovarga@cisco.com>
Wed, 20 Aug 2014 15:58:15 +0000 (17:58 +0200)
committerRobert Varga <rovarga@cisco.com>
Tue, 26 Aug 2014 13:00:45 +0000 (13:00 +0000)
commit6041bbd96ad0dd05dfbb1b0e6e265a7a7fc09863
tree8af9b0355a6b07d8e3fa88e53514fad5650e0048
parent2e99e9ac6c4ab36d56713f960e456fec111553e9
BUG-1590: introduce PathArgument.toRelativeString() and use it

This patch introduces a new method, toRelativeString(), which does the
same thing as toString(), but takes into account previous path argument
and does not emit namespace if it matches the previous namespace.

Change-Id: Ia75c7cbf4a2fd7639a7c991e5b8242bd5f2a439a
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-data-api/src/main/java/org/opendaylight/yangtools/yang/data/api/YangInstanceIdentifier.java