com.guiseframework.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

public interface RangeValidator<V>
extends Validator<V>

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 com.guiseframework.validator.Validator
INVALID_VALUE_MESSAGE_PROPERTY, VALUE_REQUIRED_MESSAGE_PROPERTY, VALUE_REQUIRED_PROPERTY
 
Method Summary
 V getMaximum()
           
 V getMinimum()
           
 V getStep()
           
 
Methods inherited from interface com.guiseframework.validator.Validator
getInvalidValueMessage, getSession, getValueRequiredMessage, isValid, setInvalidValueMessage, setValueRequiredMessage, validate
 
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 

Method Detail

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.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.