BUG-865: remove String-based getDataChildByName() 82/43982/3
authorJakub Morvay <jmorvay@cisco.com>
Mon, 15 Aug 2016 13:25:13 +0000 (15:25 +0200)
committerJakub Morvay <jmorvay@cisco.com>
Mon, 15 Aug 2016 13:37:44 +0000 (15:37 +0200)
Some classes still implement String-based getDataChildByName method.
Get rid of this method implementations.

Change-Id: Ib8c458ec380262957b4bdc4e3b4f3e500f31d8f4
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NodeContainerProxy.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/ContainerSchemaNodeImpl.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/ModuleImpl.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/rest/services/impl/ContainerSchemaNodeImpl.java
restconf/sal-rest-connector/src/main/java/org/opendaylight/restconf/rest/services/impl/ModuleImpl.java

index 65f486cd466a15937335b875779d21daf65c65f4..829bac68473053434c9c8df55dcb5330e94903af 100644 (file)
@@ -80,11 +80,6 @@ public final class NodeContainerProxy implements ContainerSchemaNode {
         return childNodes.get(qName);
     }
 
-    @Override
-    public DataSchemaNode getDataChildByName(final String s) {
-        throw new UnsupportedOperationException();
-    }
-
     @Override
     public Set<UsesNode> getUses() {
         return Collections.emptySet();
index d589f94d3e5bfb0cb90203eebdd769f4c67b2115..3f25fb9c0b22a4beea15c86513841af9a5093ed0 100644 (file)
@@ -59,16 +59,6 @@ class ContainerSchemaNodeImpl implements ContainerSchemaNode {
         throw new RestconfDocumentedException(name + " is not in child of " + this.qname);
     }
 
-    @Override
-    public DataSchemaNode getDataChildByName(final String name) {
-        for (final DataSchemaNode node : this.child) {
-            if (node.getQName().getLocalName().equals(name)) {
-                return node;
-            }
-        }
-        throw new RestconfDocumentedException(name + " is not in child of " + this.qname);
-    }
-
     @Override
     public Set<UsesNode> getUses() {
         throw new UnsupportedOperationException("Not supported.");
index a88917dc9e7ac70ac9ea5042f45e4313a77d44c7..4f7fa52f29c38d1d95af22b6bf2ff67b229199b7 100644 (file)
@@ -95,16 +95,6 @@ class ModuleImpl implements Module {
         throw new RestconfDocumentedException(name + " is not in child of " + ModuleImpl.moduleQName);
     }
 
-    @Override
-    public DataSchemaNode getDataChildByName(final String name) {
-        for (final DataSchemaNode node : this.listChild) {
-            if (node.getQName().getLocalName().equals(name)) {
-                return node;
-            }
-        }
-        throw new RestconfDocumentedException(name + " is not in child of " + ModuleImpl.moduleQName);
-    }
-
     @Override
     public Set<UsesNode> getUses() {
         throw new UnsupportedOperationException("Not supported operations.");
index cf85579121c0d424f5b0668f19aa21d30fb82303..eb44432c545ff39e3fabc9e26fb500441bd20465 100644 (file)
@@ -62,16 +62,6 @@ class ContainerSchemaNodeImpl implements ContainerSchemaNode {
         throw new RestconfDocumentedException(name + " is not in child of " + this.qname);
     }
 
-    @Override
-    public DataSchemaNode getDataChildByName(final String name) {
-        for (final DataSchemaNode node : this.child) {
-            if (node.getQName().getLocalName().equals(name)) {
-                return node;
-            }
-        }
-        throw new RestconfDocumentedException(name + " is not in child of " + this.qname);
-    }
-
     @Override
     public Set<UsesNode> getUses() {
         throw new UnsupportedOperationException("Not supported.");
index f66b6e9c721bf3a631c60388feacf78a497561d9..b8033bbacebfc487d26ad4009d3951cafe02b881 100644 (file)
@@ -96,16 +96,6 @@ class ModuleImpl implements Module {
         throw new RestconfDocumentedException(name + " is not in child of " + ModuleImpl.moduleQName);
     }
 
-    @Override
-    public DataSchemaNode getDataChildByName(final String name) {
-        for (final DataSchemaNode node : this.listChild) {
-            if (node.getQName().getLocalName().equals(name)) {
-                return node;
-            }
-        }
-        throw new RestconfDocumentedException(name + " is not in child of " + ModuleImpl.moduleQName);
-    }
-
     @Override
     public Set<UsesNode> getUses() {
         throw new UnsupportedOperationException("Not supported operations.");