public final class ValidationConfig extends Object
Constructor and Description |
---|
ValidationConfig() |
Modifier and Type | Method and Description |
---|---|
ValidationConfig |
constraintValidatorFactory(javax.validation.ConstraintValidatorFactory constraintValidatorFactory)
Defines the constraint validator factory.
|
javax.validation.ConstraintValidatorFactory |
getConstraintValidatorFactory()
Return
ConstraintValidatorFactory implementation used for configuration. |
javax.validation.MessageInterpolator |
getMessageInterpolator()
Return
MessageInterpolator implementation used for configuration. |
javax.validation.ParameterNameProvider |
getParameterNameProvider()
Return
ParameterNameProvider implementation used for configuration. |
javax.validation.TraversableResolver |
getTraversableResolver()
Return
TraversableResolver implementation used for configuration. |
ValidationConfig |
messageInterpolator(javax.validation.MessageInterpolator messageInterpolator)
Defines the message interpolator.
|
ValidationConfig |
parameterNameProvider(javax.validation.ParameterNameProvider parameterNameProvider)
Defines the parameter name provider.
|
ValidationConfig |
traversableResolver(javax.validation.TraversableResolver traversableResolver)
Defines the traversable resolver.
|
public javax.validation.MessageInterpolator getMessageInterpolator()
MessageInterpolator
implementation used for configuration.MessageInterpolator
or null
if not defined.public javax.validation.TraversableResolver getTraversableResolver()
TraversableResolver
implementation used for configuration.TraversableResolver
or null
if not defined.public javax.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
ConstraintValidatorFactory
implementation used for configuration.ConstraintValidatorFactory
or null
if not defined.public javax.validation.ParameterNameProvider getParameterNameProvider()
ParameterNameProvider
implementation used for configuration.ParameterNameProvider
or null
if not defined.public ValidationConfig messageInterpolator(javax.validation.MessageInterpolator messageInterpolator)
null
is passed, the default message interpolator is used.messageInterpolator
- message interpolator implementation.public ValidationConfig traversableResolver(javax.validation.TraversableResolver traversableResolver)
null
is passed, the default traversable resolver is used.traversableResolver
- traversable resolver implementation.public ValidationConfig constraintValidatorFactory(javax.validation.ConstraintValidatorFactory constraintValidatorFactory)
null
is passed, the default constraint validator factory is used.constraintValidatorFactory
- constraint factory implementation.public ValidationConfig parameterNameProvider(javax.validation.ParameterNameProvider parameterNameProvider)
null
is passed, the default parameter name provider is used.parameterNameProvider
- parameter name provider implementation.Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.