public class MandatoryValidator extends Object implements FieldValidator
form validator. This
validator is used to test that a field has a value. For
Strings, this means that the field must contain at least one
non-blank character. For all other types, it must be something other than
null. This validator does not specify a validation policy.| Constructor and Description |
|---|
MandatoryValidator() |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
validate(Object value,
ValidateContext context)
Validates a candidate value.
|
public ValidationResult validate(Object value, ValidateContext context)
null
validate in interface FieldValidatorvalue - candidate value to validatecontext - validate contextCopyright © 2006–2020 Esito AS. All rights reserved.