Package jakarta.faces.validator
Class DoubleRangeValidator
java.lang.Object
jakarta.faces.validator.DoubleRangeValidator
- All Implemented Interfaces:
- PartialStateHolder,- StateHolder,- Validator,- EventListener
@JSFValidator(name="f:validateDoubleRange",
              bodyContent="empty")
@JSFJspProperty(name="binding",
                returnType="jakarta.faces.validator.DoubleRangeValidator",
                longDesc="A ValueExpression that evaluates to a DoubleRangeValidator.")
public class DoubleRangeValidator
extends Object
implements Validator, PartialStateHolder
Creates a validator and associateds it with the nearest parent
 UIComponent.  When invoked, the validator ensures that values are
 valid doubles that lie within the minimum and maximum values specified.
 
 Commonly associated with a h:inputText entity.
 
 Unless otherwise specified, all attributes accept static values or EL expressions.
 
 see Javadoc of Faces Specification
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDoubleRangeValidator(double maximum) DoubleRangeValidator(double maximum, double minimum) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleandoubleThe largest value that should be considered valid.doubleThe smallest value that should be considered valid.inthashCode()booleanbooleanvoidvoidrestoreState(FacesContext context, Object state) saveState(FacesContext context) voidsetMaximum(double maximum) voidsetMinimum(double minimum) voidsetTransient(boolean transientValue) voidvalidate(FacesContext facesContext, UIComponent uiComponent, Object value) 
- 
Field Details- 
VALIDATOR_ID- See Also:
 
- 
MAXIMUM_MESSAGE_ID- See Also:
 
- 
MINIMUM_MESSAGE_ID- See Also:
 
- 
TYPE_MESSAGE_ID- See Also:
 
- 
NOT_IN_RANGE_MESSAGE_ID- See Also:
 
 
- 
- 
Constructor Details- 
DoubleRangeValidatorpublic DoubleRangeValidator()
- 
DoubleRangeValidatorpublic DoubleRangeValidator(double maximum) 
- 
DoubleRangeValidatorpublic DoubleRangeValidator(double maximum, double minimum) 
 
- 
- 
Method Details- 
validatepublic void validate(FacesContext facesContext, UIComponent uiComponent, Object value) throws ValidatorException - Specified by:
- validatein interface- Validator
- Throws:
- ValidatorException
 
- 
getMaximum@JSFProperty(deferredValueType="java.lang.Double") public double getMaximum()The largest value that should be considered valid.
- 
setMaximumpublic void setMaximum(double maximum) 
- 
getMinimum@JSFProperty(deferredValueType="java.lang.Double") public double getMinimum()The smallest value that should be considered valid.
- 
setMinimumpublic void setMinimum(double minimum) 
- 
saveState- Specified by:
- saveStatein interface- StateHolder
 
- 
restoreState- Specified by:
- restoreStatein interface- StateHolder
 
- 
isTransientpublic boolean isTransient()- Specified by:
- isTransientin interface- StateHolder
 
- 
setTransientpublic void setTransient(boolean transientValue) - Specified by:
- setTransientin interface- StateHolder
 
- 
equals
- 
clearInitialStatepublic void clearInitialState()- Specified by:
- clearInitialStatein interface- PartialStateHolder
 
- 
initialStateMarkedpublic boolean initialStateMarked()- Specified by:
- initialStateMarkedin interface- PartialStateHolder
 
- 
markInitialStatepublic void markInitialState()- Specified by:
- markInitialStatein interface- PartialStateHolder
 
- 
hashCodepublic int hashCode()
 
-