public static void renderDiagnostics ( final Diagnosable component , final WebXmlRenderContext renderContext ) { List < Diagnostic > diags = component . getDiagnostics ( Diagnostic . ERROR ) ; if ( diags != null ) { renderHelper ( renderContext , component , diags , Diagnostic . ERROR ) ; } diags = component . getDiagnostics ( Diagnostic . WARNING ) ; if ( diags != null ) { renderHelper ( renderContext , component , diags , Diagnostic . WARNING ) ; } diags = component . getDiagnostics ( Diagnostic . INFO ) ; if ( diags != null ) { renderHelper ( renderContext , component , diags , Diagnostic . INFO ) ; } diags = component . getDiagnostics ( Diagnostic . SUCCESS ) ; if ( diags != null ) { renderHelper ( renderContext , component , diags , Diagnostic . SUCCESS ) ; } }
Render diagnostics for the component .