wicket.markup.html.form.validation
Interface IValidator

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractValidator, IValidator.NullValidator

public interface IValidator
extends java.io.Serializable

THIS INTERFACE IS NOT PART OF THE WICKET PUBLIC API. DO NOT USE IT.

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 CustomValidator.

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

Nested Class Summary
static class IValidator.NullValidator
          Validator that does nothing.
 
Field Summary
static IValidator NULL
          An implementation of IValidator that does nothing at all.
 
Method Summary
 void validate(FormComponent component)
          THIS METHOD IS NOT PART OF THE WICKET PUBLIC API.
 

Field Detail

NULL

public static final IValidator NULL
An implementation of IValidator that does nothing at all.

Method Detail

validate

public void validate(FormComponent component)
THIS METHOD IS NOT PART OF THE WICKET PUBLIC API. DO NOT IMPLEMENT IT.

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 CustomValidator.

Validates the given input. The input corresponds to the input from the request for a component. Any implementation of this method should be synchronized because validators are intended to be shared across sessions/threads.

Parameters:
component - Component to validate


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