org.keycloak.validation

## Class ValidationResult

- java.lang.Object
- - org.keycloak.validation.ValidationResult

-     public class ValidationResult
      extends Object

  Author:
    Vaclav Muzikar

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValidationResult(Set<ValidationError> errors)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `fieldHasError(String fieldId)`
    `String` | `getAllErrorsAsString()`
    `protected String` | `getAllErrorsAsString(Function<ValidationError,String> function)`
    `String` | `getAllLocalizedErrorsAsString(Properties messagesBundle)`
    `Set<ValidationError>` | `getErrors()`
    `boolean` | `isValid()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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)

Copyright © 2020 JBoss by Red Hat. All rights reserved.