return validationMessages;
}
private ValidationMessage convertMessage( final Message message ) {
final ValidationMessage msg = new ValidationMessage();
switch ( message.getLevel() ) {
case ERROR:
msg.setLevel( ValidationMessage.Level.ERROR );
break;
case WARNING:
msg.setLevel( ValidationMessage.Level.WARNING );
break;
case INFO:
msg.setLevel( ValidationMessage.Level.INFO );
break;
}
msg.setId( message.getId() );
msg.setLine( message.getLine() );
msg.setColumn( message.getColumn() );
msg.setText( message.getText() );
return msg;
}