Fixed implementation of TypeProviderImpl for Leafref resolving.
Since the modification of resolving of inner type definitions as
ExtendedTypes there had to be done minor modifications in
javaTypeForSchemaDefinitionType and baseTypeForExtendedType methods.
Also the SchemaPath no longer contains the module name as first element
so the module name is now retrieved directly from SchemaContext
via findModuleByNamespace method;
Added findModuleByName and findModuleByNamespace into SchemaContext in
yang-model-api;
Added implementation of findModuleByName and findModuleByNamespace for
private implementation of SchemaContextImpl in YangModelParserImpl;
Fixed possible resource leak in resolveModuleBuildersFromStreams in
YangModelBuilderImpl - implemented loadStreams and closeStreams methods;
Added implementation of test case for resolving of leafrefs and leafref
types from multiple modules;
Fixed wrong constructor call of Leafref Type Definition in parseTypeBody
method in YangModelBuilderUtil;
Fixed resolving of SchemaPath for Type statement in
YangModelParserListenerImpl;
Change-Id: I6a037a746562d856d12ea71d3fb095e902e1c204
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>