public class ValidWhen
extends java.lang.Object
| Constructor and Description |
|---|
ValidWhen() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
validateValidWhen(java.lang.Object bean,
org.apache.commons.validator.ValidatorAction va,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
javax.servlet.http.HttpServletRequest request)
Checks if the field matches the boolean expression specified in
test parameter. |
public static boolean validateValidWhen(java.lang.Object bean,
org.apache.commons.validator.ValidatorAction va,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
javax.servlet.http.HttpServletRequest request)
test parameter.bean - The bean validation is being performed on.va - The ValidatorAction that is currently being
performed.field - The Field object associated with the
current field being validated.errors - The ActionMessages object to add errors to
if any validation errors occur.request - Current request object.true if meets stated requirements,
false otherwise.Copyright © 2000–2024 Apache Software Foundation. All rights reserved.