public interface IValidatable<T>
| Modifier and Type | Method and Description | 
|---|---|
Set<ValidationError> | 
getErrors(T model,
         ValidationError.Severity severity)
Returns the errors of the specified severity
 associated with this model. 
 | 
ValidationError.Severity | 
getSeverity()
Returns the severity for this model. 
 | 
void | 
updateSeverity(ValidationError.Severity severity)
Updates the severity for this model. 
 | 
ValidationError.Severity getSeverity()
ValidationError.Severity.WARNING
 means that the model has at least one warning, but no errors.
 ValidationError.Severity.ERROR
 means that the model has at least one error.void updateSeverity(ValidationError.Severity severity)
severity - the severitySet<ValidationError> getErrors(T model, ValidationError.Severity severity)
severity - The severity. If null, both errors
 and warnings are returnedCopyright © 2018. All Rights Reserved.