com.opensymphony.xwork2.validator

## Class ValidatorConfig.Builder

- java.lang.Object
- - com.opensymphony.xwork2.validator.ValidatorConfig.Builder

- Enclosing class:
    ValidatorConfig

      public static final class ValidatorConfig.Builder
      extends Object

  Builds a ValidatorConfig

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Builder(String validatorType)`
    `Builder(ValidatorConfig config)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ValidatorConfig.Builder` | `addParam(String name, Object value)`
    `ValidatorConfig.Builder` | `addParams(Map<String,Object> params)`
    `ValidatorConfig` | `build()`
    `ValidatorConfig.Builder` | `defaultMessage(String msg)`
    `ValidatorConfig.Builder` | `location(Location loc)`
    `ValidatorConfig.Builder` | `messageKey(String key)`
    `ValidatorConfig.Builder` | `messageParams(String[] msgParams)`
    `ValidatorConfig.Builder` | `removeParam(String key)`
    `ValidatorConfig.Builder` | `shortCircuit(boolean shortCircuit)`

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

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

- - ### Constructor Detail

    - #### Builder

          public Builder(String validatorType)

    - #### Builder

          public Builder(ValidatorConfig config)

  - ### Method Detail

    - #### shortCircuit

          public ValidatorConfig.Builder shortCircuit(boolean shortCircuit)

    - #### defaultMessage

          public ValidatorConfig.Builder defaultMessage(String msg)

    - #### messageParams

          public ValidatorConfig.Builder messageParams(String[] msgParams)

    - #### messageKey

          public ValidatorConfig.Builder messageKey(String key)

    - #### addParam

          public ValidatorConfig.Builder addParam(String name,
                                                  Object value)

    - #### addParams

          public ValidatorConfig.Builder addParams(Map<String,Object> params)

    - #### location

          public ValidatorConfig.Builder location(Location loc)

    - #### build

          public ValidatorConfig build()

    - #### removeParam

          public ValidatorConfig.Builder removeParam(String key)

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.