org.richfaces.validator

## Class FacesBeanValidator

- java.lang.Object
- - org.richfaces.validator.FacesBeanValidator

- All Implemented Interfaces:
    Serializable, EventListener, javax.faces.validator.Validator, GraphValidator

      public class FacesBeanValidator
      extends Object
      implements Serializable, javax.faces.validator.Validator, GraphValidator

  Implementation of the JSF validator to use with Bean Validation / Hibernate validator TODO - implement partial state saving.
  Author:
    asmirnov
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `BEAN_VALIDATOR_TYPE`

    - ### Fields inherited from interface javax.faces.validator.Validator

      `NOT_IN_RANGE_MESSAGE_ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `FacesBeanValidator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Class<?>[]` | `getGroups()`
    `String` | `getSummary()`
    `boolean` | `isValidateFields()`
    `void` | `setGroups(Class<?>... profiles)`
    `void` | `setGroups(javax.el.ValueExpression profilesExpression)`
    `void` | `setSummary(String summary)`
    `void` | `setSummary(javax.el.ValueExpression summary)`
    `void` | `setValidateFields(boolean ignoreErrors)`
    `void` | `validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object convertedValue)`
    `Collection<String>` | `validateGraph(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value, Class<?>[] groups)`

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

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

- - ### Field Detail

    - #### BEAN_VALIDATOR_TYPE

          public static final String BEAN_VALIDATOR_TYPE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### FacesBeanValidator

          public FacesBeanValidator()

  - ### Method Detail

    - #### getSummary

          public String getSummary()

      Returns:
        the summary

    - #### setSummary

          public void setSummary(javax.el.ValueExpression summary)

      Parameters:
        `summary` - the summary to set

    - #### setSummary

          public void setSummary(String summary)

      Parameters:
        `summary` - the summary to set

    - #### validate

          public void validate(javax.faces.context.FacesContext context,
                               javax.faces.component.UIComponent component,
                               Object convertedValue)
                        throws javax.faces.validator.ValidatorException

      Specified by:
        `validate` in interface `javax.faces.validator.Validator`
      Throws:
        `javax.faces.validator.ValidatorException`

    - #### validateGraph

          public Collection<String> validateGraph(javax.faces.context.FacesContext context,
                                                  javax.faces.component.UIComponent component,
                                                  Object value,
                                                  Class<?>[] groups)
                                           throws javax.faces.validator.ValidatorException

      Specified by:
        `validateGraph` in interface `GraphValidator`
      Throws:
        `javax.faces.validator.ValidatorException`

    - #### getGroups

          public Class<?>[] getGroups()

      Returns:
        the profiles

    - #### setGroups

          public void setGroups(Class<?>... profiles)

      Parameters:
        `profiles` - the profiles to set

    - #### setGroups

          public void setGroups(javax.el.ValueExpression profilesExpression)

    - #### isValidateFields

          public boolean isValidateFields()

      Returns:
        the ignoreErrors

    - #### setValidateFields

          public void setValidateFields(boolean ignoreErrors)

      Parameters:
        `ignoreErrors` - the ignoreErrors to set

Copyright © 2016 JBoss by Red Hat. All Rights Reserved.