public class DefaultValidationResultModel extends AbstractValidationResultModel
ValidationResultModel
interface
that holds a ValidationResult.PROPERTY_ERRORS, PROPERTY_MESSAGES, PROPERTY_RESULT, PROPERTY_SEVERITY
Constructor and Description |
---|
DefaultValidationResultModel()
Constructs a DefaultValidationResultModel initialized
with an empty validation result.
|
Modifier and Type | Method and Description |
---|---|
ValidationResult |
getResult()
Returns this model's validation result.
|
void |
setResult(ValidationResult newResult)
Sets a new unmodifiable non-null validation result and
notifies all registered listeners about changes of the result itself
and the properties for severity, errors and messages.
|
firePropertyChanges, getSeverity, hasErrors, hasMessages
addPropertyChangeListener, 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, removeVetoableChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DefaultValidationResultModel()
public final ValidationResult getResult()
ValidationResultModel.setResult(ValidationResult)
public void setResult(ValidationResult newResult)
#validate()
method.Note: If the given validation result is modifiable, an unmodifiable copy is set - and reported as new value in the PropertyChangeEvent.
newResult
- the validation result to be setNullPointerException
- if newResult
is null
getResult()
,
ValidationResultModelContainer.setResult(ValidationResult)
Copyright © 2003-2014 JGoodies Software GmbH. All Rights Reserved.