public abstract class GenericMinMaxValidatorTag<T> extends ValidatorTag
Modifier and Type | Field and Description |
---|---|
protected T |
_max |
protected javax.el.ValueExpression |
_maximum |
protected T |
_min |
protected javax.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(javax.el.ValueExpression maximum) |
void |
setMinimum(javax.el.ValueExpression minimum) |
setBinding, setValidatorId, setValidatorIdString
doStartTag
protected javax.el.ValueExpression _minimum
protected javax.el.ValueExpression _maximum
protected T _min
protected T _max
public void setMinimum(javax.el.ValueExpression minimum)
public void setMaximum(javax.el.ValueExpression maximum)
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
release
in class ValidatorTag
protected Validator createValidator() throws javax.servlet.jsp.JspException
createValidator
in class ValidatorTag
javax.servlet.jsp.JspException
protected abstract boolean isMinLTMax()
Copyright © 2020 The Apache Software Foundation. All rights reserved.