Package org.keycloak.validation
Class ValidationResult
- java.lang.Object
-
- org.keycloak.validation.ValidationResult
-
public class ValidationResult extends Object
- Author:
- Vaclav Muzikar
-
-
Constructor Summary
Constructors Constructor Description ValidationResult(Set<ValidationError> errors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
fieldHasError(String fieldId)
String
getAllErrorsAsString()
protected String
getAllErrorsAsString(Function<ValidationError,String> function)
String
getAllLocalizedErrorsAsString(Properties messagesBundle)
Set<ValidationError>
getErrors()
boolean
isValid()
-
-
-
Constructor Detail
-
ValidationResult
public ValidationResult(Set<ValidationError> errors)
-
-
Method Detail
-
isValid
public boolean isValid()
-
getErrors
public Set<ValidationError> getErrors()
-
getAllErrorsAsString
public String getAllErrorsAsString()
-
getAllLocalizedErrorsAsString
public String getAllLocalizedErrorsAsString(Properties messagesBundle)
-
getAllErrorsAsString
protected String getAllErrorsAsString(Function<ValidationError,String> function)
-
fieldHasError
public boolean fieldHasError(String fieldId)
-
-