243ee90dafc22f1dbc6d181d97edde828b53b9cc
[mdsal.git] / yanglib / mdsal-yanglib-api / src / main / java / org / opendaylight / mdsal / yanglib / api / YangLibSupportFactory.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.mdsal.yanglib.api;
9
10 import com.google.common.annotations.Beta;
11 import java.io.IOException;
12 import org.eclipse.jdt.annotation.NonNullByDefault;
13 import org.opendaylight.yangtools.yang.model.parser.api.YangParserException;
14 import org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory;
15 import org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException;
16
17 /**
18  * Main entrypoint for instantiating YangLibSupport implementations.
19  */
20 @Beta
21 @NonNullByDefault
22 public interface YangLibSupportFactory {
23
24     YangLibSupport createYangLibSupport(YangParserFactory parserFactory) throws YangSyntaxErrorException,
25         YangParserException, IOException;
26 }