com.jgoodies.validation.extras
Class LimitedValidationResultModel
java.lang.Object
com.jgoodies.validation.util.AbstractValidationResultModel
com.jgoodies.validation.util.DefaultValidationResultModel
com.jgoodies.validation.extras.LimitedValidationResultModel
- All Implemented Interfaces:
- ValidationResultModel
public final class LimitedValidationResultModel
- extends DefaultValidationResultModel
An implementation of ValidationResultModel
that wraps another
ValidationResultModel to limit the number of reported
ValidationMessage
s.
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 code base.
- Version:
- $Revision: 1.15 $
- Author:
- Karsten Lentzsch
- See Also:
ValidationResultModel
Methods inherited from class com.jgoodies.validation.util.AbstractValidationResultModel |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChanges, getPropertyChangeListeners, getPropertyChangeListeners, getSeverity, hasErrors, hasMessages, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LimitedValidationResultModel
public LimitedValidationResultModel(ValidationResultModel model,
int limit)
- Constructs an
LimitedValidationResultModel
on the given ValidationResultModel.
- Parameters:
model
- the underlying model that provides all validation messageslimit
- the upper bound for the number of messages this model returns
Copyright © 2003-2008 JGoodies Karsten Lentzsch. All Rights Reserved.