wicket.markup.html.form.validation
Class StringValidator

java.lang.Object
  extended bywicket.markup.html.form.validation.AbstractValidator
      extended bywicket.markup.html.form.validation.StringValidator
All Implemented Interfaces:
IValidator, java.io.Serializable
Direct Known Subclasses:
CustomValidator, IntegerValidator, LengthValidator, PatternValidator, RequiredValidator, TypeValidator

public abstract class StringValidator
extends AbstractValidator

A validator for strings designed for subclassing. A subclass implements onValidate() to validate the component and its string value.

Author:
Jonathan Locke
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wicket.markup.html.form.validation.IValidator
IValidator.NullValidator
 
Field Summary
 
Fields inherited from interface wicket.markup.html.form.validation.IValidator
NULL
 
Constructor Summary
StringValidator()
           
 
Method Summary
 void onValidate()
          Implemented by subclasses to validate component
abstract  void onValidate(java.lang.String value)
          Subclasses should override this method to validate the string value for a component.
 
Methods inherited from class wicket.markup.html.form.validation.AbstractValidator
error, error, error, error, getFormComponent, getInput, messageModel, resourceKey, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringValidator

public StringValidator()
Method Detail

onValidate

public void onValidate()
Description copied from class: AbstractValidator
Implemented by subclasses to validate component

Specified by:
onValidate in class AbstractValidator
See Also:
AbstractValidator.onValidate()

onValidate

public abstract void onValidate(java.lang.String value)
Subclasses should override this method to validate the string value for a component.

Parameters:
value - The string value to validate


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