Promote SchemaSourceRepresentation
[yangtools.git] / plugin / yang-maven-plugin / src / main / java / org / opendaylight / yangtools / yang2sources / plugin / YangProvider.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. 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.yangtools.yang2sources.plugin;
9
10 import com.google.common.annotations.VisibleForTesting;
11 import java.io.IOException;
12 import java.util.Collection;
13 import java.util.List;
14 import org.apache.maven.project.MavenProject;
15 import org.opendaylight.yangtools.yang.model.spi.source.YangTextSource;
16
17 @FunctionalInterface
18 @VisibleForTesting
19 interface YangProvider {
20
21     List<FileState> addYangsToMetaInf(MavenProject project, Collection<YangTextSource> modelsInProject)
22         throws IOException;
23 }