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.
26 * The method will return List of All Generated Types that could be
27 * Generated from Schema Context.
30 * @param context Schema Context
31 * @return List of Generated Types
35 public 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
40 * otherwise the there is no guarantee that result List of Generated
41 * Types will contain correct Generated Types.
43 * @param context Schema Context
44 * @param modules Sub Set of Modules
45 * @return List of Generated Types restricted by sub set of Modules
51 public List<Type> generateTypes(final SchemaContext context,
52 final Set<Module> modules);