2638dc33b021fae8bec0261719da95c27109bbe9
[controller.git] / opendaylight / sal / yang-prototype / code-generator / maven-yang / src / main / java / org / opendaylight / controller / yang2sources / spi / ResourceGenerator.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.controller.yang2sources.spi;
9
10 import java.io.File;
11 import java.util.Collection;
12
13 /**
14  * Classes implementing this interface can be submitted to maven-yang-plugin's
15  * generate-resources goal.
16  */
17 public interface ResourceGenerator {
18
19     /**
20      * Generate resources (e.g. copy files into resources folder) from provided
21      * list of yang files
22      * 
23      * @param resources
24      *            list of parsed yang files
25      * @param outputBaseDir
26      *            expected output directory for resources configured by user
27      */
28     void generateResourceFiles(Collection<File> resources, File outputBaseDir);
29 }