68697071727374757677787980
catch (FormatException e) { if (e instanceof Message) { Message m= (Message) e; results.add(new ErrorMessage(m.getMessage(), m.getAdditionalInfo())); } else { results.add(new ErrorMessage(e.getMessage())); } } }
46474849505152
} } protected ErrorMessage createErrorMessage() { return new ErrorMessage(getErrorText()); }
62636465666768
} } protected ErrorMessage createErrorMessageForIndex(int i) { return new ErrorMessage(getErrorTextForIndex(i)); }
4142434445464748
public void validate(Object value, ValidationResultCollector results) { if (value == null) { results.add(new ErrorMessage(message, infoMessage)); } }
public void validate(String value, ValidationResultCollector results) { if (value == null || value.trim().length() < 1) { results.add(new ErrorMessage(message, infoMessage)); } }