wicket.markup.html.form.validation
Class EmailAddressPatternValidator

java.lang.Object
  extended by wicket.markup.html.form.validation.AbstractValidator
      extended by wicket.markup.html.form.validation.StringValidator
          extended by wicket.markup.html.form.validation.PatternValidator
              extended by wicket.markup.html.form.validation.EmailAddressPatternValidator
All Implemented Interfaces:
java.io.Serializable, IValidator

public class EmailAddressPatternValidator
extends PatternValidator

Validator for checking the form/pattern of email addresses.

Author:
Chris Turner, Jonathan Locke, Martijn Dashorst
See Also:
Serialized Form

Constructor Summary
protected EmailAddressPatternValidator()
          Protected constructor to force use of static singleton accessor method.
 
Method Summary
static EmailAddressPatternValidator getInstance()
           
protected  java.lang.String resourceKey(FormComponent formComponent)
          Gets the resource key for validator's error message from the ApplicationSettings class.
 
Methods inherited from class wicket.markup.html.form.validation.PatternValidator
getPattern, messageModel, onValidate, toString
 
Methods inherited from class wicket.markup.html.form.validation.StringValidator
exactLength, lengthBetween, maximumLength, minimumLength, validate
 
Methods inherited from class wicket.markup.html.form.validation.AbstractValidator
error, error, error, error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EmailAddressPatternValidator

protected EmailAddressPatternValidator()
Protected constructor to force use of static singleton accessor method. Or override it to implement resourceKey(Component)

Method Detail

getInstance

public static EmailAddressPatternValidator getInstance()
Returns:
Instance of emailadress validator

resourceKey

protected java.lang.String resourceKey(FormComponent formComponent)
Description copied from class: AbstractValidator
Gets the resource key for validator's error message from the ApplicationSettings class.

Overrides:
resourceKey in class PatternValidator
Parameters:
formComponent - form component that is being validated
Returns:
the resource key based on the form component
See Also:
AbstractValidator.resourceKey(wicket.markup.html.form.FormComponent)


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