Fix minor bug in FRM proactive flow code path
[controller.git] / opendaylight / sal / yang-prototype / code-generator / binding-generator-spi / src / main / java / org / opendaylight / controller / sal / binding / generator / spi / TypeProvider.java
1 /*\r
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.\r
3  *\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
7  */\r
8 package org.opendaylight.controller.sal.binding.generator.spi;\r
9 \r
10 import org.opendaylight.controller.sal.binding.model.api.Type;\r
11 import org.opendaylight.controller.yang.model.api.TypeDefinition;\r
12 \r
13 public interface TypeProvider {\r
14 \r
15     @Deprecated\r
16     Type javaTypeForYangType(String type);\r
17 \r
18     /**\r
19      * Resolve of yang Type Definition to it's java counter part.\r
20      * If the Type Definition contains one of yang primitive types the method\r
21      * will return java.lang. counterpart. (For example if yang type is int32\r
22      * the java counterpart is java.lang.Integer). In case that Type\r
23      * Definition contains extended type defined via yang typedef statement\r
24      * the method SHOULD return Generated Type or Generated Transfer Object\r
25      * if that Type is correctly referenced to resolved imported yang module.\r
26      * The method will return <cdoe>null</cdoe> value in situations that\r
27      * TypeDefinition can't be resolved (either due missing yang import or\r
28      * incorrectly specified type).\r
29      *\r
30      *\r
31      * @param type Type Definition to resolve from\r
32      * @return Resolved Type\r
33      */\r
34     Type javaTypeForSchemaDefinitionType(final TypeDefinition<?> type);\r
35 }\r