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/UserPropertyTest.java
assertEquals( 7, list.getUserProperties( ).size( ) );
		List userProperties = list.getUserProperties( );
		assertEquals(
				"myProp", ( (UserPropertyDefn) userProperties.get( 0 ) ).getName( ) ); 
		assertEquals(
				"myProp1", ( (UserPropertyDefn) userProperties.get( 1 ) ).getName( ) ); 
		assertEquals(
				"myProp5", ( (UserPropertyDefn) userProperties.get( 2 ) ).getName( ) ); 
		assertEquals(
				"myProp6", ( (UserPropertyDefn) userProperties.get( 3 ) ).getName( ) ); 
		assertEquals(
				"myProp3", ( (UserPropertyDefn) userProperties.get( 4 ) ).getName( ) ); 
		assertEquals(
				"myProp2", ( (UserPropertyDefn) userProperties.get( 5 ) ).getName( ) ); 
		assertEquals(
				"parentProp", ( (UserPropertyDefn) userProperties.get( 6 ) ).getName( ) ); 
		UserPropertyDefn propDefn = list.getUserPropertyDefn( "myProp1" ); 
		assertNotNull( propDefn );
		assertEquals( "string", propDefn.getType( ).getName( ) ); 
		assertEquals( "abcde", propDefn.getDisplayNameID( ) ); 
		propDefn = list.getUserPropertyDefn( "myProp2" ); 
		assertNotNull( propDefn );
		assertEquals( "choice", propDefn.getType( ).getName( ) ); 
		assertEquals( "abc", propDefn.getDisplayNameID( ) ); 
		IChoiceSet choiceSet = propDefn.getChoices( );
		assertNotNull( choiceSet );
		IChoice[] choices = choiceSet.getChoices( );
		assertEquals( 3, choices.length );
		UserPropertyDefn prop = new UserPropertyDefn( );
		prop.setName( "test" );