private void paintRule ( final Rule rule , final XmlStringBuilder xml ) { if ( rule . getCondition ( ) == null ) { throw new SystemException ( "Rule cannot be painted as it has no condition" ) ; } paintCondition ( rule . getCondition ( ) , xml ) ; for ( Action action : rule . getOnTrue ( ) ) { paintAction ( action , "ui:onTrue" , xml ) ; } for ( Action action : rule . getOnFalse ( ) ) { paintAction ( action , "ui:onFalse" , xml ) ; } }
Paints a single rule .