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>

public class FileValidator extends DefaultValidator<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
  • Konstruktordetails

    • FileValidator

      public FileValidator()
      Default constructor
  • Methodendetails

    • assertValidity

      public void assertValidity(Part testValue) throws ValidationException
      Determine whether a testValue meets the criteria specified in the constraints defined for this validator
      Parameter:
      testValue - a Part to be tested
      Löst aus:
      ValidationException - containing an error message if the testValue did not pass the validation tests.