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>
return childNodes.get(qName);
}
return childNodes.get(qName);
}
- @Override
- public DataSchemaNode getDataChildByName(final String s) {
- throw new UnsupportedOperationException();
- }
-
@Override
public Set<UsesNode> getUses() {
return Collections.emptySet();
@Override
public Set<UsesNode> getUses() {
return Collections.emptySet();
throw new RestconfDocumentedException(name + " is not in child of " + this.qname);
}
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.");
@Override
public Set<UsesNode> getUses() {
throw new UnsupportedOperationException("Not supported.");
throw new RestconfDocumentedException(name + " is not in child of " + ModuleImpl.moduleQName);
}
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.");
@Override
public Set<UsesNode> getUses() {
throw new UnsupportedOperationException("Not supported operations.");
throw new RestconfDocumentedException(name + " is not in child of " + this.qname);
}
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.");
@Override
public Set<UsesNode> getUses() {
throw new UnsupportedOperationException("Not supported.");
throw new RestconfDocumentedException(name + " is not in child of " + ModuleImpl.moduleQName);
}
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.");
@Override
public Set<UsesNode> getUses() {
throw new UnsupportedOperationException("Not supported operations.");