2 * Copyright (c) 2019 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.netconf.client.mdsal;
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;
17 // TODO: this should really come from mdsal-yanglib-rfc8525
18 final class NetconfMountPointContextFactory implements MountPointContextFactory {
19 private final @NonNull MountPointContext mountPoint;
21 NetconfMountPointContextFactory(final EffectiveModelContext schemaContext) {
22 mountPoint = MountPointContext.of(schemaContext);
26 public MountPointContext createContext(final Map<ContainerName, MountPointChild> libraryContainers,
27 final MountPointChild schemaMounts) {