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%2FEmptyNodeWrapper.java;h=f7f70e8d87ca697b5050144c56bb165976c2551c;hb=2c4a9be1a89caa93f4f2697401771dcb0fa67c5a;hp=c146954dcedad184d51181db8f4a4da395b6498c;hpb=fe1c9b6c6080f1d23ffaea6c03252f3c0c26184f;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java index c146954dce..f7f70e8d87 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.controller.sal.restconf.impl; import java.net.URI; @@ -5,10 +12,7 @@ import java.util.Collections; import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.data.api.CompositeNode; -import org.opendaylight.yangtools.yang.data.api.ModifyAction; -import org.opendaylight.yangtools.yang.data.api.MutableSimpleNode; import org.opendaylight.yangtools.yang.data.api.Node; -import org.opendaylight.yangtools.yang.data.api.SimpleNode; import org.opendaylight.yangtools.yang.data.impl.NodeFactory; import com.google.common.base.Preconditions; @@ -42,6 +46,11 @@ public final class EmptyNodeWrapper implements NodeWrapper>, Node this.name = name; } + @Override + public QName getQname() { + return name; + } + @Override public String getLocalName() { if (unwrapped != null) { @@ -64,6 +73,11 @@ public final class EmptyNodeWrapper implements NodeWrapper>, Node this.namespace = namespace; } + @Override + public boolean isChangeAllowed() { + return unwrapped == null ? true : false; + } + @Override public Node unwrap() { if (unwrapped == null) {