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.mdsal.yanglib.api;
10 import com.google.common.annotations.Beta;
11 import java.util.List;
13 import org.eclipse.jdt.annotation.NonNullByDefault;
14 import org.opendaylight.yangtools.yang.common.QName;
15 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
16 import org.opendaylight.yangtools.yang.parser.api.YangParserException;
19 * An entity which can assemble a set of sources into a SchemaContext. Note that unlike other variations on this
20 * theme, the definitions are done via {@link SourceReference} and can thus contain locations where a particular
21 * source can be located.
24 * It is left an implementation detail whether the locations provided are checked or if the SchemaContext is resolved
25 * using some other mechanism.
29 public interface SchemaContextResolver {
31 EffectiveModelContext resolveSchemaContext(List<SourceReference> librarySources,
32 List<SourceReference> requiredSources, Set<QName> supportedFeatures) throws YangParserException;