Add AbstractCodecFactory.LeafrefResolver 66/95166/4
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 14 Feb 2021 13:38:42 +0000 (14:38 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 14 Feb 2021 14:17:31 +0000 (15:17 +0100)
commit64daa7fd98796351e87e8d1107e6a88d5b28ee3a
tree75a2fcbabc46724093fd9492b94de92584da6ae5
parenta48642527444441125039950716df93caf7dc43a
Add AbstractCodecFactory.LeafrefResolver

The context provided by SchemaNode is rather not nice, as it implies
access through SchemaNode.getPath(). The only use case for it is
leafref resolution -- hence encapsulate it, so that users can do their
own thing if need be.

JIRA: YANGTOOLS-1232
Change-Id: I385dceac4796e138130df32a5dad578e9ceceed1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONCodecFactory.java
yang/yang-data-codec-xml/src/main/java/org/opendaylight/yangtools/yang/data/codec/xml/XmlCodecFactory.java
yang/yang-data-util/src/main/java/module-info.java
yang/yang-data-util/src/main/java/org/opendaylight/yangtools/yang/data/util/codec/AbstractCodecFactory.java