Package io.guise.framework.validator
Interface RangeValidator<V>
- Type Parameters:
V
- The value type this validator supports.
- All Superinterfaces:
com.globalmentor.beans.PropertyBindable
,Validator<V>
- All Known Implementing Classes:
AbstractComparableRangeValidator
,AbstractRangeValidator
,DateRangeValidator
,DecimalRangeValidator
,IntegerRangeValidator
,LongRangeValidator
A validator restricting a value to a range. The step value is considered relative either to the minimum value, if available, the maximum value, if available,
or zero, in that order or priority.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from interface io.guise.framework.validator.Validator
INVALID_VALUE_MESSAGE_PROPERTY, VALUE_REQUIRED_MESSAGE_PROPERTY, VALUE_REQUIRED_PROPERTY
-
Method Summary
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
Methods inherited from interface io.guise.framework.validator.Validator
getInvalidValueMessage, getSession, getValueRequiredMessage, isValid, setInvalidValueMessage, setValueRequiredMessage, validate
-
Method Details
-
getMinimum
V getMinimum()- Returns:
- The minimum value, inclusive, or
null
if the range has no lower bound.
-
getMaximum
V getMaximum()- Returns:
- The maximum value, inclusive, or
null
if the range has no upper bound.
-
getStep
V getStep()- Returns:
- The step amount, or
null
if the range has no increment value specified.
-