public void clearMessages ( String fieldName ) { Set messagesForFieldName = getMessages ( fieldName ) ; for ( Iterator mi = messagesForFieldName . iterator ( ) ; mi . hasNext ( ) ; ) { messages . remove ( mi . next ( ) ) ; } messagesSubSets . clear ( ) ; }
Clear all messages of the given fieldName .