public abstract class GenericMinMaxValidatorTag<T> extends ValidatorTag
| Modifier and Type | Field and Description |
|---|---|
protected T |
_max |
protected jakarta.el.ValueExpression |
_maximum |
protected T |
_min |
protected jakarta.el.ValueExpression |
_minimum |
| Constructor and Description |
|---|
GenericMinMaxValidatorTag() |
| Modifier and Type | Method and Description |
|---|---|
protected Validator |
createValidator()
This method returns the Validator, you have to cast it to the correct type and apply the min and max values.
|
protected abstract T |
getValue(Object value)
Wrapper method.
|
protected abstract boolean |
isMinLTMax() |
void |
release() |
void |
setMaximum(jakarta.el.ValueExpression maximum) |
void |
setMinimum(jakarta.el.ValueExpression minimum) |
setBinding, setValidatorId, setValidatorIdStringdoStartTagprotected jakarta.el.ValueExpression _minimum
protected jakarta.el.ValueExpression _maximum
protected T _min
protected T _max
public void setMinimum(jakarta.el.ValueExpression minimum)
public void setMaximum(jakarta.el.ValueExpression maximum)
public void release()
release in interface jakarta.servlet.jsp.tagext.Tagrelease in class ValidatorTagprotected Validator createValidator() throws jakarta.servlet.jsp.JspException
createValidator in class ValidatorTagjakarta.servlet.jsp.JspExceptionprotected abstract boolean isMinLTMax()
Copyright © 2021 The Apache Software Foundation. All rights reserved.