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.netconf.client.mdsal.api;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNullByDefault;
14 * A provider of {@link BaseNetconfSchema} instances.
18 public interface BaseNetconfSchemaProvider {
20 * Return a {@link BaseNetconfSchema} corresponding to a set of capabilities advertized by a NETCONF device.
22 * @param sessionPreferences the set of advertized capabilities
23 * @return A {@link BaseNetconfSchema}
24 * @throws NullPointerException if {@code capabilityURNs} is {@code null}
26 BaseNetconfSchema baseSchemaForCapabilities(NetconfSessionPreferences sessionPreferences);