package org.opendaylight.controller.sal.binding.generator.spi;\r
\r
import org.opendaylight.controller.sal.binding.model.api.Type;\r
-import org.opendaylight.controller.yang.model.api.TypeDefinition;\r
+import org.opendaylight.yangtools.yang.model.api.TypeDefinition;\r
\r
public interface TypeProvider {\r
\r
@Deprecated\r
Type javaTypeForYangType(String type);\r
\r
+ /**\r
+ * Resolve of yang Type Definition to it's java counter part.\r
+ * If the Type Definition contains one of yang primitive types the method\r
+ * will return java.lang. counterpart. (For example if yang type is int32\r
+ * the java counterpart is java.lang.Integer). In case that Type\r
+ * Definition contains extended type defined via yang typedef statement\r
+ * the method SHOULD return Generated Type or Generated Transfer Object\r
+ * if that Type is correctly referenced to resolved imported yang module.\r
+ * The method will return <cdoe>null</cdoe> value in situations that\r
+ * TypeDefinition can't be resolved (either due missing yang import or\r
+ * incorrectly specified type).\r
+ *\r
+ *\r
+ * @param type Type Definition to resolve from\r
+ * @return Resolved Type\r
+ */\r
Type javaTypeForSchemaDefinitionType(final TypeDefinition<?> type);\r
}\r