Bug 180089 BIRT model - TOC predefined styles
In ROM we need to support predefined styles for TOC too. This will allow user to easily create a TOC style, by creating one of two styles. Suggestion i have is - TOC ( Applies to all TOC nodes ) - TOC-level1 ( If defined applies to first level toc nodes ) - TOC-level2 ........... - TOC-level5
model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/TableItemParseTest.java
assertEquals( 3, table.getColumnCount( ) );
		
		Iterator sorts = table.sortsIterator( );
		SortKeyHandle sortHandle = (SortKeyHandle) sorts.next( );
		assertEquals( "age", sortHandle.getKey( ) ); 
		assertEquals( "asc", sortHandle.getDirection( ) ); 
		sortHandle = (SortKeyHandle) sorts.next( );
		assertEquals( "grade", sortHandle.getKey( ) ); 
		assertEquals( "desc", sortHandle.getDirection( ) ); 
		assertNull( sorts.next( ) );
		
		Iterator filters = table.filtersIterator( );
		FilterConditionHandle filterHandle = (FilterConditionHandle) filters
				.next( );
		assertEquals( "lt", filterHandle.getOperator( ) ); 
		assertEquals( "filter expression", filterHandle.getExpr( ) ); 
		assertEquals( "value1 expression", filterHandle.getValue1( ) ); 
		assertEquals( "value2 expression", filterHandle.getValue2( ) ); 
		
		SlotHandle headerSlot = table.getHeader( );
		assertNotNull( headerSlot );
		RowHandle rowHandle = (RowHandle) headerSlot.get( 0 );
		testReadVisibilityRules( rowHandle );
		assertEquals( 1, headerSlot.getCount( ) );
		
		SlotHandle detailSlot = table.getDetail( );
		assertNotNull( detailSlot );
		assertEquals( 1, detailSlot.getCount( ) );
		RowHandle row = (RowHandle) detailSlot.get( 0 );