|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.validator.Validator net.sf.portions.validator.RequiredValidator
Validador usado para determinar la existencia de un campo de un formulario y de que dicho campo contiene datos
Field Summary | |
private static long |
serialVersionUID
Identificador universal de la versión de la clase |
Fields inherited from class org.apache.commons.validator.Validator |
BEAN_PARAM, classLoader, FIELD_PARAM, fieldName, FORM_PARAM, formName, LOCALE_PARAM, onlyReturnErrors, page, parameters, resources, useContextClassLoader, VALIDATOR_ACTION_PARAM, VALIDATOR_PARAM, VALIDATOR_RESULTS_PARAM |
Constructor Summary | |
RequiredValidator(org.apache.commons.validator.ValidatorResources resource)
Constructor de la clase |
|
RequiredValidator(org.apache.commons.validator.ValidatorResources resource,
java.lang.String formName)
Constructor de la clase |
|
RequiredValidator(org.apache.commons.validator.ValidatorResources resource,
java.lang.String formName,
java.lang.String fieldName)
Constructor de la clase |
Method Summary | |
static boolean |
validateRequired(java.lang.Object bean,
org.apache.commons.validator.Field field)
Realiza la validación de la existencia de un campo de un formulario y de que dicho campo contenga datos |
Methods inherited from class org.apache.commons.validator.Validator |
clear, getClassLoader, getFormName, getOnlyReturnErrors, getPage, getParameterValue, getUseContextClassLoader, setClassLoader, setFieldName, setFormName, setOnlyReturnErrors, setPage, setParameter, setUseContextClassLoader, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
Constructor Detail |
public RequiredValidator(org.apache.commons.validator.ValidatorResources resource, java.lang.String formName, java.lang.String fieldName)
resource
- Recursos utilizados durante la validaciónformName
- Nombre del formulario a validarfieldName
- Nombre del campo a validarpublic RequiredValidator(org.apache.commons.validator.ValidatorResources resource, java.lang.String formName)
resource
- Recursos utilizados durante la validaciónformName
- Nombre del formulario a validarpublic RequiredValidator(org.apache.commons.validator.ValidatorResources resource)
resource
- Recursos utilizados durante la validaciónMethod Detail |
public static boolean validateRequired(java.lang.Object bean, org.apache.commons.validator.Field field)
bean
- formulario a validarfield
- campo del formulario a validar
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |