wicket.markup.html.form.validation
Interface IValidator

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractValidator, CustomValidator, DateValidator, EmailAddressPatternValidator, IntegerValidator, LengthValidator, NumberValidator, PatternValidator, RequiredValidator, StringValidator, TypeValidator

public interface IValidator
extends java.io.Serializable

Interface for validations by form components.

Instead of subclassing IValidator, you should use one of the existing validators, which cover a huge number of cases, or if none satisfies your need, subclass one of the Type validators like StringValidator, NumberValidator or DateValidator

Interface to code that validates Form components. When the validate() method of the interface is called by the framework, the IValidator implementation is expected to check the input String it is passed.

Author:
Jonathan Locke

Method Summary
 void validate(FormComponent component)
           Instead of subclassing IValidator, you should use one of the existing validators, which cover a huge number of cases, or if none satisfies your need, subclass one of the Type validators like StringValidator, NumberValidator or DateValidator
 

Method Detail

validate

void validate(FormComponent component)

Instead of subclassing IValidator, you should use one of the existing validators, which cover a huge number of cases, or if none satisfies your need, subclass one of the Type validators like StringValidator, NumberValidator or DateValidator

Validates the given input. The input corresponds to the input from the request for a component.

Parameters:
component - Component to validate


Copyright © 2004-2007 Wicket developers. All Rights Reserved.