|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.behavior.Behavior org.apache.wicket.validation.validator.AbstractValidator<String> org.apache.wicket.validation.validator.StringValidator org.apache.wicket.validation.validator.StringValidator.LengthBetweenValidator
public static class StringValidator.LengthBetweenValidator
Validator for checking if the length of a String
is within the specified range.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.validation.validator.StringValidator |
---|
StringValidator.ExactLengthValidator, StringValidator.LengthBetweenValidator, StringValidator.MaximumLengthValidator, StringValidator.MinimumLengthValidator |
Constructor Summary | |
---|---|
StringValidator.LengthBetweenValidator(int minimum,
int maximum)
Constructor that sets the minimum and maximum values. |
Method Summary | |
---|---|
int |
getMaximum()
Retrieves the maximum value. |
int |
getMinimum()
Retrieves the minimum value. |
protected void |
onValidate(IValidatable<String> validatable)
see AbstractValidator#onValidate(IValidatable) |
protected String |
resourceKey()
Gets the message resource key for this validator's error message from the ApplicationSettings class. |
protected Map<String,Object> |
variablesMap(IValidatable<String> validatable)
Gets the default Map of variables. |
Methods inherited from class org.apache.wicket.validation.validator.StringValidator |
---|
exactLength, lengthBetween, maximumLength, minimumLength |
Methods inherited from class org.apache.wicket.validation.validator.AbstractValidator |
---|
error, error, error, error, validate, validateOnNullValue |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, renderHead, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringValidator.LengthBetweenValidator(int minimum, int maximum)
minimum
- the minimum valuemaximum
- the maximum valueMethod Detail |
---|
public final int getMaximum()
public final int getMinimum()
protected void onValidate(IValidatable<String> validatable)
onValidate
in class AbstractValidator<String>
validatable
- the given IValidatable
instanceprotected String resourceKey()
AbstractValidator
ApplicationSettings
class.
NOTE: THIS METHOD SHOULD NEVER RETURN null
.
resourceKey
in class AbstractValidator<String>
AbstractValidator.resourceKey()
protected Map<String,Object> variablesMap(IValidatable<String> validatable)
AbstractValidator
Map
of variables.
NOTE: THIS METHOD SHOULD NEVER RETURN null
.
variablesMap
in class AbstractValidator<String>
validatable
- the IValidatable
instance being validated
Map
of variables for variable interpolationAbstractValidator.variablesMap(IValidatable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |