public class ValidationStateImpl extends Object implements ValidationState
ValidationStateFailureCollector
Modifier and Type | Field and Description |
---|---|
private List<ValidationFailure> |
failureList |
private List<ValidationFailure> |
failureView |
Constructor and Description |
---|
ValidationStateImpl()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getFailureCount() |
List<ValidationFailure> |
getFailureList()
|
boolean |
isValid()
This method determines if the
validation has been
successful. |
void |
onFailure(ValidationFailure failure)
This method gets called if a
ValidationFailure occurred. |
private final List<ValidationFailure> failureList
private final List<ValidationFailure> failureView
public boolean isValid()
ValidationState
validation
has been
successful.isValid
in interface ValidationState
true
if no ValidationFailure
has been collected
,
false
otherwise.public void onFailure(ValidationFailure failure)
ValidationCollector
ValidationFailure
occurred.onFailure
in interface ValidationCollector
failure
- is the new ValidationFailure
.public List<ValidationFailure> getFailureList()
List
of ValidationFailure
s.public int getFailureCount()
getFailureCount
in interface ValidationCollector
ValidationFailure
s that have been collected
.Copyright © 2001–2016 mmm-Team. All rights reserved.