public String format ( CheckLevel level , MessageFormatter formatter ) { switch ( level ) { case ERROR : return formatter . formatError ( this ) ; case WARNING : return formatter . formatWarning ( this ) ; default : return null ; } }
Format a message at the given level .