ontopoly.validators
Class RegexValidator

java.lang.Object
  extended by org.apache.wicket.validation.validator.AbstractValidator<java.lang.String>
      extended by ontopoly.validators.RegexValidator
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.validation.INullAcceptingValidator<java.lang.String>, org.apache.wicket.validation.IValidator<java.lang.String>

public abstract class RegexValidator
extends org.apache.wicket.validation.validator.AbstractValidator<java.lang.String>

See Also:
Serialized Form

Field Summary
protected  FieldInstanceModel fieldInstanceModel
           
 
Constructor Summary
RegexValidator(org.apache.wicket.Component component, FieldInstanceModel fieldInstanceModel)
           
 
Method Summary
protected abstract  java.lang.String getRegex()
           
protected  void onValidate(org.apache.wicket.validation.IValidatable<java.lang.String> validatable)
           
protected  java.lang.String resourceKeyInvalidRegex()
           
protected  java.lang.String resourceKeyInvalidValue()
           
 
Methods inherited from class org.apache.wicket.validation.validator.AbstractValidator
error, error, error, error, messageModel, resourceKey, resourceKey, validate, validate, validateOnNullValue, variablesMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fieldInstanceModel

protected FieldInstanceModel fieldInstanceModel
Constructor Detail

RegexValidator

public RegexValidator(org.apache.wicket.Component component,
                      FieldInstanceModel fieldInstanceModel)
Method Detail

onValidate

protected void onValidate(org.apache.wicket.validation.IValidatable<java.lang.String> validatable)
Specified by:
onValidate in class org.apache.wicket.validation.validator.AbstractValidator<java.lang.String>

getRegex

protected abstract java.lang.String getRegex()

resourceKeyInvalidValue

protected java.lang.String resourceKeyInvalidValue()

resourceKeyInvalidRegex

protected java.lang.String resourceKeyInvalidRegex()


Copyright © 2000-2012 Ontopia.