public static final class ValidatorConfig.Builder extends Object
Constructor and Description |
---|
Builder(String validatorType) |
Builder(ValidatorConfig config) |
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) |
public Builder(String validatorType)
public Builder(ValidatorConfig config)
public ValidatorConfig.Builder shortCircuit(boolean shortCircuit)
public ValidatorConfig.Builder defaultMessage(String msg)
public ValidatorConfig.Builder messageParams(String[] msgParams)
public ValidatorConfig.Builder messageKey(String key)
public ValidatorConfig.Builder addParam(String name, Object value)
public ValidatorConfig.Builder addParams(Map<String,Object> params)
public ValidatorConfig.Builder location(Location loc)
public ValidatorConfig build()
public ValidatorConfig.Builder removeParam(String key)
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.