2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.controller.sal.binding.generator.api;
\r
10 import java.util.List;
\r
11 import java.util.Set;
\r
13 import org.opendaylight.controller.sal.binding.model.api.Type;
\r
14 import org.opendaylight.yangtools.yang.model.api.Module;
\r
15 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
\r
21 public interface BindingGenerator {
\r
24 * Generate Types from whole Schema Context.
\r
26 * The method will return List of All Generated Types that could be
\r
27 * Generated from Schema Context.
\r
30 * @param context Schema Context
\r
31 * @return List of Generated Types
\r
33 * @see SchemaContext
\r
35 public List<Type> generateTypes(final SchemaContext context);
\r
38 * Generate Types from Schema Context restricted by sub set of specified
\r
39 * Modules. The Schema Context MUST contain all of the sub modules
\r
40 * otherwise the there is no guarantee that result List of Generated
\r
41 * Types will contain correct Generated Types.
\r
43 * @param context Schema Context
\r
44 * @param modules Sub Set of Modules
\r
45 * @return List of Generated Types restricted by sub set of Modules
\r
48 * @see SchemaContext
\r
51 public List<Type> generateTypes(final SchemaContext context,
\r
52 final Set<Module> modules);
\r