2 * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.common.util;
10 import static java.util.Objects.requireNonNull;
12 import java.util.Collection;
13 import java.util.Collections;
14 import java.util.List;
15 import java.util.Optional;
16 import org.opendaylight.yangtools.yang.common.QName;
17 import org.opendaylight.yangtools.yang.common.QNameModule;
18 import org.opendaylight.yangtools.yang.model.api.DataSchemaNode;
19 import org.opendaylight.yangtools.yang.model.api.Module;
20 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
22 final class OperationsImportedModule extends AbstractOperationsModule {
23 private final Module original;
25 OperationsImportedModule(final Module original) {
26 this.original = requireNonNull(original);
30 public String getName() {
31 return original.getName();
35 public QNameModule getQNameModule() {
36 return original.getQNameModule();
40 public String getPrefix() {
41 return original.getPrefix();
45 public Collection<DataSchemaNode> getChildNodes() {
46 return Collections.emptySet();
50 public Optional<DataSchemaNode> findDataChildByName(final QName name) {
51 return Optional.empty();
55 public Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {