X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2FCompositeNodeWrapper.java;h=8c5870522ec2a53a6be3e89f7cf66477b6aed063;hb=940313e2863c04e1a282d4c220ce761e02cc6e5d;hp=fc146256e8ed7d2a0168944f3d16170fbd85bd07;hpb=0618d4956aba2a765a932bc3690db9db120244da;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/CompositeNodeWrapper.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/CompositeNodeWrapper.java index fc146256e8..8c5870522e 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/CompositeNodeWrapper.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/CompositeNodeWrapper.java @@ -41,6 +41,11 @@ public final class CompositeNodeWrapper implements NodeWrapper, C Preconditions.checkState(compositeNode == null, "Cannot change the object, due to data inconsistencies."); this.name = name; } + + @Override + public QName getQname() { + return name; + } @Override public String getLocalName() { @@ -78,6 +83,11 @@ public final class CompositeNodeWrapper implements NodeWrapper, C Preconditions.checkState(compositeNode == null, "Data can be inconsistent."); return Collections.unmodifiableList(values); } + + @Override + public boolean isChangeAllowed() { + return compositeNode == null ? true : false; + } @Override public CompositeNode unwrap() {