public class ValidationResults extends Object implements Serializable
| Constructor and Description |
|---|
ValidationResults() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(ValidationResult result) |
protected ValidationResult |
getResultByClassName(String clazz) |
List<ValidationResult> |
getResults() |
protected Map<String,ValidationResult> |
getResultsByClassName() |
boolean |
isBlocking()
Returns
true if the current validation blocks the import. |
boolean |
isSuccessful()
Returns
true if the current validation result is successful. |
ValidationResults |
merge(ValidationResults toBeMergedWith)
Merges the results with the provided and returns a new instance of the
ValidationResults object having "merged" results. |
String |
toString() |
protected ValidationResult getResultByClassName(String clazz)
public List<ValidationResult> getResults()
public void addResult(ValidationResult result)
protected Map<String,ValidationResult> getResultsByClassName()
public boolean isSuccessful()
true if the current validation result is successful.true if the current validation result is successfulpublic boolean isBlocking()
true if the current validation blocks the import.true if the current validation result is blocking.public ValidationResults merge(ValidationResults toBeMergedWith)
ValidationResults object having "merged" results.toBeMergedWith - a ValidationResults to merge withValidationResults object having "merged" resultsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.