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
assertEquals( "The design file was created by an earlier version of BIRT. Click OK to convert it to a format supported by the current version of the product.", versionInfo.getLocalizedMessage( ) ); 
		infos = ModuleUtil.checkVersion( getResource( INPUT_FOLDER
				+ "ScalarParameterHandleTest.xml" ).toString( ) ); 
		assertEquals( 0, infos.size( ) );
		infos = ModuleUtil.checkVersion( getResource( INPUT_FOLDER
				+ "CheckVersionDesign.xml" ).toString( ) ); 
		assertEquals( 1, infos.size( ) );
		versionInfo = (IVersionInfo) infos.get( 0 );
		assertEquals( "3.2.19", versionInfo.getDesignFileVersion( ) ); 
		assertEquals( "The report file of version \"3.2.19\" is not supported.", 
				versionInfo.getLocalizedMessage( ) );
	}
	/**
	 * test case: 1: the cube is extended from library cube. The hierarchy
	 * handle from dimensionCondition is the library hierarchy instance, but the
	 * hierarchy handle from the report design cube is the report design virtual
	 * element instance. To draw the joint condition from GUI, they should be
	 * same. 2: the hierachy handle from the joint condition and the cube are
	 * all local hierarchy instance, they should be same.
	 * 
	 * @throws DesignFileException
	 */
	public void testIsEqualHierarchyForJointCondition( )
			throws DesignFileException
	{
		openDesign( "testIsEqualHierarchyForJointCondition_report.xml" );
		TabularCubeHandle cube1 = (TabularCubeHandle) designHandle.findCube( "Customer Cube" );
		assertNotNull( cube1 );
		TabularCubeHandle cube2 = (TabularCubeHandle) designHandle.findCube( "Customer Cube1" );
		assertNotNull( cube2 );