|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.intake.validator.DefaultValidator
org.apache.turbine.services.intake.validator.FileValidator
A validator that will compare a FileItem testValue against the following constraints in addition to those listed in DefaultValidator. This validator can serve as the base class for more specific validators
Field Summary |
Fields inherited from class org.apache.turbine.services.intake.validator.DefaultValidator |
errorMessage, log, maxLength, maxLengthMessage, minLength, minLengthMessage, required, requiredMessage |
Fields inherited from interface org.apache.turbine.services.intake.validator.Validator |
FLEXIBLE_RULE_NAME, FORMAT_RULE_NAME, INVALID_NUMBER_RULE_NAME, MASK_RULE_NAME, MAX_LENGTH_RULE_NAME, MAX_VALUE_RULE_NAME, MIN_LENGTH_RULE_NAME, MIN_VALUE_RULE_NAME, REQUIRED_RULE_NAME |
Constructor Summary | |
FileValidator()
Default constructor |
|
FileValidator(java.util.Map paramMap)
Constructor |
Method Summary | |
void |
assertValidity(org.apache.commons.fileupload.FileItem testValue)
Determine whether a testValue meets the criteria specified in the constraints defined for this validator |
Methods inherited from class org.apache.turbine.services.intake.validator.DefaultValidator |
assertValidity, getMaxLength, getMaxLengthMessage, getMessage, getMinLength, getMinLengthMessage, getRequiredMessage, init, isRequired, isValid, setMaxLength, setMaxLengthMessage, setMinLength, setMinLengthMessage, setRequired, setRequiredMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileValidator(java.util.Map paramMap) throws IntakeException
paramMap
- a Map
of rule
's
containing constraints on the input.
InvalidMaskException
- an invalid mask was specified
IntakeException
public FileValidator()
Method Detail |
public void assertValidity(org.apache.commons.fileupload.FileItem testValue) throws ValidationException
testValue
- a FileItem
to be tested
ValidationException
- containing an error message if the
testValue did not pass the validation tests.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |