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.yangtools.sal.binding.generator.api;
10 import java.util.List;
13 import org.opendaylight.yangtools.sal.binding.model.api.Type;
14 import org.opendaylight.yangtools.yang.model.api.Module;
15 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
18 * Transform Schema Context to Generated types.
21 public interface BindingGenerator {
24 * Generate Types from whole Schema Context. <br>
25 * The method will return List of All Generated Types that could be
26 * Generated from Schema Context.
31 * @return List of Generated Types
35 List<Type> generateTypes(final SchemaContext context);
38 * Generate Types from Schema Context restricted by sub set of specified
39 * Modules. The Schema Context MUST contain all of the sub modules otherwise
40 * the there is no guarantee that result List of Generated Types will
41 * contain correct Generated Types.
47 * @return List of Generated Types restricted by sub set of Modules
53 List<Type> generateTypes(final SchemaContext context, final Set<Module> modules);