/** * Add the result of a validator action. * @param validatorName Name of the validator. * @param result Whether the validation passed or failed. */ public void add(String validatorName, boolean result) { this.add(validatorName, result, null); }
/** * Add a the result of a validator action. * * @param field The field validated. * @param validatorName The name of the validator. * @param result The result of the validation. * @param value The value returned by the validator. */ public void add( Field field, String validatorName, boolean result, Object value) { ValidatorResult validatorResult = this.getValidatorResult(field.getKey()); if (validatorResult == null) { validatorResult = new ValidatorResult(field); this.hResults.put(field.getKey(), validatorResult); } validatorResult.add(validatorName, result, value); }
/** * Add the result of a validator action. * @param validatorName Name of the validator. * @param result Whether the validation passed or failed. */ public void add(String validatorName, boolean result) { this.add(validatorName, result, null); }
/** * Add the result of a validator action. * @param validatorName Name of the validator. * @param result Whether the validation passed or failed. */ public void add(String validatorName, boolean result) { this.add(validatorName, result, null); }
/** * Add a the result of a validator action. * * @param field The field validated. * @param validatorName The name of the validator. * @param result The result of the validation. * @param value The value returned by the validator. */ public void add( Field field, String validatorName, boolean result, Object value) { ValidatorResult validatorResult = this.getValidatorResult(field.getKey()); if (validatorResult == null) { validatorResult = new ValidatorResult(field); this.hResults.put(field.getKey(), validatorResult); } validatorResult.add(validatorName, result, value); }
/** * Add a the result of a validator action. * * @param field The field validated. * @param validatorName The name of the validator. * @param result The result of the validation. * @param value The value returned by the validator. */ public void add( Field field, String validatorName, boolean result, Object value) { ValidatorResult validatorResult = this.getValidatorResult(field.getKey()); if (validatorResult == null) { validatorResult = new ValidatorResult(field); this.hResults.put(field.getKey(), validatorResult); } validatorResult.add(validatorName, result, value); }