if ( ReportDesignConstants.ROW_ELEMENT.equalsIgnoreCase( name ) ) if ( IStyleModel.PAGE_BREAK_AFTER_PROP .equalsIgnoreCase( prop.getName( ) ) || IStyleModel.PAGE_BREAK_BEFORE_PROP .equalsIgnoreCase( prop.getName( ) ) || IStyleModel.PAGE_BREAK_INSIDE_PROP .equalsIgnoreCase( prop.getName( ) ) ) continue;
	private void addStyleProperties( ) throws MetaDataException	{		if ( !hasStyle( ) )			return;		if ( isContainer( ) )		{			// Add all style properties if this element is container and can			// have style or the element is ExtendedItem.			List styleProperties = MetaDataDictionary.getInstance( ).getStyle( )					.getLocalProperties( );			for ( int i = 0; i < styleProperties.size( ); i++ )			{				PropertyDefn prop = (PropertyDefn) styleProperties.get( i );				// special cases for row. PageBreak properties are not supported				// on TableRow element.				if ( ReportDesignConstants.ROW_ELEMENT.equalsIgnoreCase( name ) )					if ( IStyleModel.PAGE_BREAK_AFTER_PROP							.equalsIgnoreCase( prop.getName( ) )							|| IStyleModel.PAGE_BREAK_BEFORE_PROP									.equalsIgnoreCase( prop.getName( ) )							|| IStyleModel.PAGE_BREAK_INSIDE_PROP									.equalsIgnoreCase( prop.getName( ) ) )						continue;				properties.put( prop.getName( ), prop );			}		}		else		{			if ( stylePropertyNames == null )				return;			ElementDefn style = (ElementDefn) MetaDataDictionary.getInstance( )					.getStyle( );			// Get the style property list this element can access if it's			// leaf element.			for ( int i = 0; i < stylePropertyNames.size( ); i++ )			{				String propName = (String) stylePropertyNames.get( i );				// Ignore properties already defined.				if ( getProperty( propName ) != null )					continue;				SystemPropertyDefn prop = (SystemPropertyDefn) style						.getProperty( propName );				// It is an implementation error if the style property list				// includes				// the name of a property that is not defined in the style				// element,				// or is defined, but is not one meant to be associated with an				// element.				if ( prop == null )					throw new MetaDataException(							new String[]{propName, name},							MetaDataException.DESIGN_EXCEPTION_STYLE_PROP_NOT_FOUND );				assert prop.isStyleProperty( );				// Copy a reference to the style property into the property				// list for this element.				properties.put( prop.getName( ), prop );			}		}	}