java.lang.Object
DefaultValidationResultModel
com.jgoodies.validation.extras.LimitedValidationResultModel
- public final class LimitedValidationResultModel
- extends DefaultValidationResultModel
An implementation of ValidationResultModel that wraps another
ValidationResultModel to limit the number of reported
com.jgoodies.validation.ValidationMessages.
Note: This class is not yet part of the binary Validation
library; it comes with the Validation distributions as an extra.
The API is work in progress and may change without notice;
this class may even be completely removed from future distributions.
If you want to use this class, you may consider copying it into
your codebase.
- Version:
- $Revision: 1.7 $
|
Field Summary |
private int |
limit
Holds the upper bound for the number of messages in
ValidationResults this model reports. |
|
Constructor Summary |
LimitedValidationResultModel(ValidationResultModel model,
int limit)
Constructs an LimitedValidationResultModel
on the given ValidationResultModel. |
|
Method Summary |
private ValidationResult |
limitedResult(ValidationResult result)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
limit
private final int limit
- Holds the upper bound for the number of messages in
ValidationResults this model reports.
LimitedValidationResultModel
public LimitedValidationResultModel(ValidationResultModel model,
int limit)
- Constructs an
LimitedValidationResultModel
on the given ValidationResultModel.
limitedResult
private ValidationResult limitedResult(ValidationResult result)