org.slim3.struts.validator
Class S3FieldChecks
java.lang.Object
org.apache.struts.validator.FieldChecks
org.slim3.struts.validator.S3FieldChecks
- All Implemented Interfaces:
- Serializable
public class S3FieldChecks
- extends FieldChecks
This class contains the added validations.
- Since:
- 3.0
- Author:
- Satoshi Kimura, higa
- See Also:
S3GenericValidator
,
Serialized Form
Method Summary |
protected static String |
getValueAsString(Object bean,
org.apache.commons.validator.Field field)
Returns the value as string. |
static boolean |
validateLongRange(Object bean,
org.apache.commons.validator.ValidatorAction validatorAction,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request)
Validates if a fields value is within a range. |
static boolean |
validateMaxByteLength(Object bean,
org.apache.commons.validator.ValidatorAction validatorAction,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request)
Validates if the byte length is less than or equal to the maximum length. |
static boolean |
validateMinByteLength(Object bean,
org.apache.commons.validator.ValidatorAction validatorAction,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request)
Validates if the byte length is greater than or equal to the minimum
length. |
Methods inherited from class org.apache.struts.validator.FieldChecks |
isString, validateByte, validateCreditCard, validateDate, validateDouble, validateDoubleRange, validateEmail, validateFloat, validateFloatRange, validateInteger, validateIntRange, validateLong, validateMask, validateMaxLength, validateMinLength, validateRequired, validateRequiredIf, validateShort, validateUrl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
S3FieldChecks
public S3FieldChecks()
validateMaxByteLength
public static boolean validateMaxByteLength(Object bean,
org.apache.commons.validator.ValidatorAction validatorAction,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request)
- Validates if the byte length is less than or equal to the maximum length.
- Parameters:
bean
- JavaBeansvalidatorAction
- the validator actionfield
- the fielderrors
- the errorsvalidator
- the validatorrequest
- the request
- Returns:
- the validated result
validateMinByteLength
public static boolean validateMinByteLength(Object bean,
org.apache.commons.validator.ValidatorAction validatorAction,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request)
- Validates if the byte length is greater than or equal to the minimum
length.
- Parameters:
bean
- JavaBeansvalidatorAction
- the validator actionfield
- the fielderrors
- the errorsvalidator
- the validatorrequest
- the request
- Returns:
- the validated result
validateLongRange
public static boolean validateLongRange(Object bean,
org.apache.commons.validator.ValidatorAction validatorAction,
org.apache.commons.validator.Field field,
ActionMessages errors,
org.apache.commons.validator.Validator validator,
HttpServletRequest request)
- Validates if a fields value is within a range.
- Parameters:
bean
- JavaBeansvalidatorAction
- the validator actionfield
- the fielderrors
- the errorsvalidator
- the validatorrequest
- the request
- Returns:
- the validated result
getValueAsString
protected static String getValueAsString(Object bean,
org.apache.commons.validator.Field field)
- Returns the value as string.
- Parameters:
bean
- JavaBeansfield
- the field
- Returns:
- the result
Copyright © 2008-2009 The Slim3 project. All Rights Reserved.