2 * Copyright (c) 2017 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
9 package org.opendaylight.mdsal.binding.javav2.generator.api;
11 import com.google.common.annotations.Beta;
12 import java.util.List;
14 import org.opendaylight.mdsal.binding.javav2.model.api.Type;
15 import org.opendaylight.yangtools.yang.model.api.Module;
16 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
20 * Transforms Schema Context to Generated types.
24 public interface BindingGenerator {
27 * Generate Types from whole Schema Context. <br>
28 * The method will return List of All Generated Types that could be
29 * Generated from Schema Context.
34 * @return List of Generated Types
38 List<Type> generateTypes(SchemaContext context);
41 * Generate Types from Schema Context restricted by sub set of specified
42 * Modules. The Schema Context MUST contain all of the sub modules otherwise
43 * there is no guarantee that result List of Generated Types will
44 * contain correct Generated Types.
50 * @return List of Generated Types restricted by sub set of Modules
55 List<Type> generateTypes(SchemaContext context, Set<Module> modules);