Bug 212497 Need api to get all referencable report item with cube
Need model provide new api to return all referencable report items for dataset or cube respectively. For instance: getAvailableDataSetBindingReferenceList(); getAvailableCubeBindingReferenceList(); also keep current api: getAvailableDataBindingReferenceList().
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/ReportItemDataRefTest.java
cmdStack.startTrans( null );
		TableHandle table3 = designHandle.getElementFactory( ).newTableItem(
				"myTable3" );
		table2.setDataBindingReference( table3 );
		list1.setDataBindingReference( table3 );
		cmdStack.commit( );
		save( );
		assertTrue( compareFile( "SetDataGroupRefInvalid_golden.xml" ) ); 
	}
	/**
	 * @throws Exception
	 */
	public void testParseInconsistentDataGroup( ) throws Exception
	{
		openDesign( "DataGroupRef_3.xml" ); 
		assertEquals( 3, designHandle.getWarningList( ).size( ) );
		List warnings = designHandle.getWarningList( );
		assertEquals(
				"The data binding reference of the element Table(\"myTable3\") has different number of groups with element Table(\"myTable1\") it refers to.", 
				( (ErrorDetail) warnings.get( 0 ) ).getMessage( ) );
		assertEquals(
				"The data binding reference of the element Table(\"myTable2\") has different number of groups with element Table(\"myTable1\") it refers to.", 
				( (ErrorDetail) warnings.get( 1 ) ).getMessage( ) );
		assertEquals(
				"The data binding reference of the element List(\"myList1\") has different number of groups with element Table(\"myTable1\") it refers to.", 
				( (ErrorDetail) warnings.get( 2 ) ).getMessage( ) );
		save( );
		assertTrue( compareFile( "ParseInconsistentDataGroup_golden.xml" ) ); 
	}
}