Klasse FileValidator
java.lang.Object
org.apache.fulcrum.intake.validator.DefaultValidator<Part>
org.apache.fulcrum.intake.validator.FileValidator
- Alle implementierten Schnittstellen:
org.apache.avalon.framework.logger.LogEnabled
,InitableByConstraintMap
,Validator<Part>
A validator that will compare a Part testValue against the following
constraints in addition to those listed in DefaultValidator.
This validator can serve as the base class for more specific validators
- Version:
- $Id$
- Autor:
- John McNally, Quinton McCombs, Colin Chalmers
-
Feldübersicht
Von Klasse geerbte Felder org.apache.fulcrum.intake.validator.DefaultValidator
errorMessage, log, maxLength, maxLengthMessage, minLength, minLengthMessage, required, requiredMessage
Von Schnittstelle geerbte Felder org.apache.fulcrum.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
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
assertValidity
(Part testValue) Determine whether a testValue meets the criteria specified in the constraints defined for this validatorVon Klasse geerbte Methoden org.apache.fulcrum.intake.validator.DefaultValidator
assertValidity, assertValidity, enableLogging, getMaxLength, getMaxLengthMessage, getMessage, getMinLength, getMinLengthMessage, getRequiredMessage, init, isRequired, isValid, isValid, setMaxLength, setMaxLengthMessage, setMinLength, setMinLengthMessage, setRequired, setRequiredMessage
-
Konstruktordetails
-
FileValidator
public FileValidator()Default constructor
-
-
Methodendetails
-
assertValidity
Determine whether a testValue meets the criteria specified in the constraints defined for this validator- Parameter:
testValue
- aPart
to be tested- Löst aus:
ValidationException
- containing an error message if the testValue did not pass the validation tests.
-