Bug 207120 Please model provide an API for data type conversion.
Currently, there're two data types: column data type and parameter data type. But they're inconsistent. Could model provide APIs for conversion between the two types. Thanks. In addition: please check the code into head and 2.2.1 branch, because we have a 2.2.1 bug to fix.
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ModuleUtilTest.java
rtnType = ModuleUtil.checkModule( sessionHandle,
				getResource( fileName ).toString( ),
				inputStream );
		assertEquals( ModuleUtil.INVALID_MODULE, rtnType );
		fileName = INPUT_FOLDER + "InValidLibrary.xml"; 
		inputStream = getResourceAStream( fileName );
		rtnType = ModuleUtil.checkModule( sessionHandle,
				getResource( fileName ).toString( ),
				inputStream );
		assertEquals( ModuleUtil.INVALID_MODULE, rtnType );
	}
	/**
	 * Test CheckVersion.
	 * 
	 * Cases:
	 * <ul>
	 * <li>test design file with version value "1".
	 * <li>test design file with same version value of currrent version.
	 * </ul>
	 * 
	 * @throws Exception
	 */
	public void testCheckVersion( ) throws Exception
	{
		ThreadResources.setLocale( ULocale.ENGLISH );
		List infos = ModuleUtil.checkVersion( getResource( INPUT_FOLDER
				+ "DesignWithoutLibrary.xml" ).toString( ) );
		assertEquals( 1, infos.size( ) );
		IVersionInfo versionInfo = (IVersionInfo) infos.get( 0 );
		assertEquals( "1", versionInfo.getDesignFileVersion( ) );