X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=restconf%2Frestconf-nb%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fserver%2Fapi%2FDatabindPath.java;h=b92cfdbc5c4dfbc972d4ae8041572f21ee816b6c;hb=0d491c8867a9d212a8dfae260cef896722dee6bc;hp=6532d6d32458d3660b26b12c4fcd918e8cfe8d31;hpb=e929792f5274d7d7901c015c6112835c16b40ca8;p=netconf.git diff --git a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/DatabindPath.java b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/DatabindPath.java index 6532d6d324..b92cfdbc5c 100644 --- a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/DatabindPath.java +++ b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/DatabindPath.java @@ -91,6 +91,12 @@ public sealed interface DatabindPath extends DatabindAware { requireNonNull(instance); requireNonNull(schema); } + + // FIXME: this is the 'Datastore' constructor + public Data(final DatabindContext databind) { + this(databind, Inference.ofDataTreePath(databind.modelContext()), YangInstanceIdentifier.of(), + databind.schemaTree().getRoot()); + } } /**