2 * Copyright (c) 2013 Cisco Systems, Inc. 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.controller.yang2sources.spi;
11 import java.io.IOException;
12 import java.util.Collection;
14 import org.opendaylight.controller.yang.model.api.SchemaContext;
17 * Classes implementing this interface can be submitted to maven-yang-plugin's
18 * generate-sources goal.
20 public interface CodeGenerator {
23 * Generate sources from provided {@link SchemaContext}
26 * parsed from yang files
27 * @param outputBaseDir
28 * expected output directory for generated sources configured by
30 * @return collection of files that were generated from schema context
32 Collection<File> generateSources(SchemaContext context, File outputBaseDir) throws IOException;