public final class LimitedValidationResultModel extends DefaultValidationResultModel
ValidationResultModel that wraps another
ValidationResultModel to limit the number of reported
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 code base.
ValidationResultModel,
Serialized FormPROPERTY_ERRORS, PROPERTY_MESSAGES, PROPERTY_RESULT, PROPERTY_SEVERITY| Constructor and Description |
|---|
LimitedValidationResultModel(ValidationResultModel model,
int limit)
Constructs a
LimitedValidationResultModel
on the given ValidationResultModel. |
getResult, setResultfirePropertyChanges, getSeverity, hasErrors, hasMessagesaddPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPropertyChangeSupport, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic LimitedValidationResultModel(ValidationResultModel model, int limit)
LimitedValidationResultModel
on the given ValidationResultModel.model - the underlying model that provides all validation messageslimit - the upper bound for the number of messages this model returnsCopyright © 2003-2014 JGoodies Software GmbH. All Rights Reserved.