Class AbstractRangeValidator<R extends Comparable<? super R> & Serializable,​V extends Serializable>

  • Type Parameters:
    R - type of range value
    V - type of validatable
    All Implemented Interfaces:
    Serializable, IComponentAwareEventSink, IComponentAwareHeaderContributor, IClusterable, IValidator<V>
    Direct Known Subclasses:
    RangeValidator, StringValidator

    public abstract class AbstractRangeValidator<R extends Comparable<? super R> & Serializable,​V extends Serializable>
    extends Behavior
    implements IValidator<V>
    Base class for validators that check if a given value falls within [min,max] range. If either min or max are null they are not checked.

    Resource keys:

    • <class.simpleName>.exact if min==max
    • <class.simpleName>.range if both min and max are not null
    • <class.simpleName>.minimum if max is null
    • <class.simpleName>.maximum if min is null

    Error Message Variables:

    • name: the id of Component that failed
    • label: the label of the Component (either comes from FormComponent.labelModel or resource key <form-id>.<form-component-id>
    • input: the input value
    • minimum: the minimum allowed value
    • maximum: the maximum allowed value

    Author:
    igor
    See Also:
    Serialized Form