Name
LongRangeValidator
Synopsis
An instance of this class is used
as a
Validator
for the range of a
Long
value.
Synopsis
Class name: |
javax.faces.validator.LongRangeValidator |
Extends: |
None |
Implements: |
|
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.LongRangeValidator.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.LongRangeValidator.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.LongRangeValidator.TYPE
.-
public static final String VALIDATOR_ID
The identifier for this validator:
javax.faces.LongRange
.
Constructors
-
public LongRangeValidator()
Creates an instance.
-
public LongRangeValidator(int maximum)
Creates an instance with the specified maximum.
-
public LongRangeValidator(int maximum, int 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 int getMaximum()
Returns the upper limit set or
Long.MAX_VALUE
if not defined.-
public int getMinimum()
Returns the lower limit set or
Long.MIN_VALUE ...
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.