/** * Factory method to create validation result out of one error * @param target validation target * @param text message text * @return New instance of validation result */ public static final ValidationResult fromError( Control target, String text ) { return fromMessages( ValidationMessage.error(target, text)); }