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
Iterator iter = cube1.joinConditionsIterator( );
		DimensionConditionHandle condition = (DimensionConditionHandle) iter.next( );
		HierarchyHandle conditionHierarchy = (HierarchyHandle) condition.getHierarchy( );
		HierarchyHandle cubeHierarchy = cube1.getDimension( "Group1" )
				.getDefaultHierarchy( );
		assertNotNull( cubeHierarchy );
		assertTrue( ModuleUtil.isEqualHierarchiesForJointCondition( conditionHierarchy,
				cubeHierarchy ) );
		
		iter = cube2.joinConditionsIterator( );
		condition = (DimensionConditionHandle) iter.next( );
		conditionHierarchy = (HierarchyHandle) condition.getHierarchy( );
		cubeHierarchy = cube2.getDimension( "Group4" ).getDefaultHierarchy( );
		assertNotNull( cubeHierarchy );
		assertTrue( ModuleUtil.isEqualHierarchiesForJointCondition( conditionHierarchy,
				cubeHierarchy ) );
		condition = (DimensionConditionHandle) iter.next( );
		conditionHierarchy = (HierarchyHandle) condition.getHierarchy( );
		cubeHierarchy = cube2.getDimension( "Group3" ).getDefaultHierarchy( );
		assertNotNull( cubeHierarchy );
		assertTrue( ModuleUtil.isEqualHierarchiesForJointCondition( conditionHierarchy,
				cubeHierarchy ) );
	}
	public void testIsValidElementName( ) throws DesignFileException,
			ContentException, NameException
	{
		openDesign( "emptyDesign.xml" );
		DataSetHandle dataset = designHandle.getElementFactory( )
				.newOdaDataSet( "validName" );
		assertTrue( ModuleUtil.isValidElementName( dataset ) );