@JSFValidator(name="f:validateDoubleRange",
bodyContent="empty",
tagClass="org.apache.myfaces.taglib.core.ValidateDoubleRangeTag")
@JSFJspProperty(name="binding",
returnType="javax.faces.validator.DoubleRangeValidator",
longDesc="A ValueExpression that evaluates to a DoubleRangeValidator.")
public class DoubleRangeValidator
extends Object
implements Validator, PartialStateHolder
| Modifier and Type | Field and Description |
|---|---|
static String |
MAXIMUM_MESSAGE_ID |
static String |
MINIMUM_MESSAGE_ID |
static String |
NOT_IN_RANGE_MESSAGE_ID |
static String |
TYPE_MESSAGE_ID |
static String |
VALIDATOR_ID |
| Constructor and Description |
|---|
DoubleRangeValidator() |
DoubleRangeValidator(double maximum) |
DoubleRangeValidator(double maximum,
double minimum) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearInitialState() |
boolean |
equals(Object o) |
double |
getMaximum()
The largest value that should be considered valid.
|
double |
getMinimum()
The smallest value that should be considered valid.
|
int |
hashCode() |
boolean |
initialStateMarked() |
boolean |
isTransient() |
void |
markInitialState() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setMaximum(double maximum) |
void |
setMinimum(double minimum) |
void |
setTransient(boolean transientValue) |
void |
validate(FacesContext facesContext,
UIComponent uiComponent,
Object value) |
public static final String VALIDATOR_ID
public static final String MAXIMUM_MESSAGE_ID
public static final String MINIMUM_MESSAGE_ID
public static final String TYPE_MESSAGE_ID
public static final String NOT_IN_RANGE_MESSAGE_ID
public DoubleRangeValidator()
public DoubleRangeValidator(double maximum)
public DoubleRangeValidator(double maximum,
double minimum)
public void validate(FacesContext facesContext, UIComponent uiComponent, Object value) throws ValidatorException
validate in interface ValidatorValidatorException@JSFProperty(deferredValueType="java.lang.Double") public double getMaximum()
public void setMaximum(double maximum)
@JSFProperty(deferredValueType="java.lang.Double") public double getMinimum()
public void setMinimum(double minimum)
public Object saveState(FacesContext context)
saveState in interface StateHolderpublic void restoreState(FacesContext context, Object state)
restoreState in interface StateHolderpublic boolean isTransient()
isTransient in interface StateHolderpublic void setTransient(boolean transientValue)
setTransient in interface StateHolderpublic void clearInitialState()
clearInitialState in interface PartialStateHolderpublic boolean initialStateMarked()
initialStateMarked in interface PartialStateHolderpublic void markInitialState()
markInitialState in interface PartialStateHolderCopyright © 2016 The Apache Software Foundation. All Rights Reserved.