Bug 188219 If a column name has colon will lead the exceptions when using it as a dimension[1101]
Description: If a column name has colon will lead the exceptions when using it as a dimension[1101] Build number: 2.2.0.v20070522-0630 Steps to reproduce: 1, New a computed column name such as a:b 2, Using the a:b column as a dimension in cube builder or 1, New a joint dataset and left all the columns name by default 2, New a cube using the joint dataset 3, Drag one column to dimension in cube builder Expected result: The column a:b or the column name has colon can be used as dimension without any exception Actual result: Exception occurs when using the a:b column as dimension Error log: A BIRT exception occurred. Plug-in Provider:Eclipse.org Plug-in Name:BIRT Model Plug-in ID:org.eclipse.birt.report.model Version:2.2.0.v20070522-0956 Error Code:Error.NameException.INVALID_NAME Error Message:The name "a:b" is invalid for it contains character ".", "/", "", "!", ";", "," .
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ElementFactoryTest.java
assertEquals( tableHandle1, rowHandle.getContainer( ) );
		rowHandle = (RowHandle) tableHandle1.getDetail( ).get( 0 );
		assertEquals( 2, rowHandle.getCells( ).getCount( ) );
		assertEquals( tableHandle1, rowHandle.getContainer( ) );
		TableHandle tableHandle2 = factory.newTableItem( "Table2", 3, 4, 5, 6 ); 
		assertEquals( "Table2", tableHandle2.getName( ) ); 
		assertEquals( 3, tableHandle2.getColumns( ).getCount( ) );
		assertEquals( 4, tableHandle2.getHeader( ).getCount( ) );
		assertEquals( 5, tableHandle2.getDetail( ).getCount( ) );
		assertEquals( 6, tableHandle2.getFooter( ).getCount( ) );
		
		
		for ( int i = 0; i < 4; i++ )
		{
			rowHandle = (RowHandle) tableHandle2.getHeader( ).get( i );
			assertEquals( 3, rowHandle.getCells( ).getCount( ) );
			for ( int j = 0; j < 2; j++ )
			{
				assertEquals( rowHandle, rowHandle.getCells( ).get( j )
						.getContainer( ) );
			}
		}
		
		for ( int i = 0; i < 5; i++ )
		{
			rowHandle = (RowHandle) tableHandle2.getDetail( ).get( i );
			assertEquals( 3, rowHandle.getCells( ).getCount( ) );
			for ( int j = 0; j < 2; j++ )
			{
				assertEquals( rowHandle, rowHandle.getCells( ).get( j )