Name

DoubleRangeValidator

Synopsis

An instance of this class is used as a Validator for the range of a Double value.

Synopsis

Class name:

javax.faces.validator.DoubleRangeValidator

Extends:

None

Implements:

javax.faces.convert.Validator, javax.faces.component.StateHolder

Fields

public static final String MAXIMUM_MESSAGE_ID

The message identifier for the message this validator creates if the maximum value limit is exceeded: javax.faces.validator.DoubleRangeValidator.MAXIMUM.

public static final String MINIMUM_MESSAGE_ID

The message identifier for the message this validator creates if the minimum value limit is not reached: javax.faces.validator.DoubleRangeValidator.MINIMUM.

public static final String TYPE_MESSAGE_ID

The message identifier for the message this validator creates if the value is not of the correct type: javax.faces.validator.DoubleRangeValidator.TYPE.

public static final String VALIDATOR_ID

The identifier for this validator: javax.faces.DoubleRange.

Constructors

public DoubleRangeValidator()

Creates an instance.

public DoubleRangeValidator(double maximum)

Creates an instance with the specified maximum.

public DoubleRangeValidator(double maximum, double minimum)

Creates an instance with the specified maximum and minimum.

Methods

public boolean equals(Object other)

Returns true if the other object represents the same converter as this instance.

public double getMaximum()

Returns the upper limit set or Double.MAX_VALUE if not defined.

public double getMinimum()

Returns ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.