public class ValidationResult extends Object
| Constructor and Description |
|---|
ValidationResult(boolean hasErrors,
boolean hasWarnings,
String message)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Returns the error/warning message if any.
|
boolean |
hasErrors()
Returns if errors occured.
|
boolean |
hasWarnings()
Returns if warnings occured.
|
boolean |
isSuccessful()
Returns if validation was successful.
|
public ValidationResult(boolean hasErrors,
boolean hasWarnings,
String message)
hasErrors - errors occuredhasWarnings - warnings occuredmessage - message text in case of errors/warningspublic boolean hasErrors()
public boolean hasWarnings()
public boolean isSuccessful()
public String getMessage()
Copyright © 2020. All rights reserved.