Rework BaseScheams
[netconf.git] / plugins / netconf-client-mdsal / src / main / java / org / opendaylight / netconf / client / mdsal / NetconfMountPointContextFactory.java
1 /*
2  * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netconf.client.mdsal;
9
10 import java.util.Map;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.data.api.schema.MountPointChild;
13 import org.opendaylight.yangtools.yang.data.api.schema.MountPointContext;
14 import org.opendaylight.yangtools.yang.data.api.schema.MountPointContextFactory;
15 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
16
17 // TODO: this should really come from mdsal-yanglib-rfc8525
18 final class NetconfMountPointContextFactory implements MountPointContextFactory {
19     private final @NonNull MountPointContext mountPoint;
20
21     NetconfMountPointContextFactory(final EffectiveModelContext schemaContext) {
22         mountPoint = MountPointContext.of(schemaContext);
23     }
24
25     @Override
26     public MountPointContext createContext(final Map<ContainerName, MountPointChild> libraryContainers,
27             final MountPointChild schemaMounts) {
28         return mountPoint;
29     }
30 }