Class ValidationParams
-
- All Implemented Interfaces:
public final class ValidationParamsRepresentation of a set of parameters allowing the parameterization of the generated validation codes.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ValidationParams()
-
Method Summary
-
-
Method Detail
-
getDisableValidatorGeneration
final Boolean getDisableValidatorGeneration()
-
setDisableValidatorGeneration
final Unit setDisableValidatorGeneration(Boolean disableValidatorGeneration)
-
getUseJakartaBeanValidation
final Boolean getUseJakartaBeanValidation()
-
setUseJakartaBeanValidation
final Unit setUseJakartaBeanValidation(Boolean useJakartaBeanValidation)
-
getJbvPackageBase
final String getJbvPackageBase()
Specifies the package for Java/Jakarta Bean Validation.
By default, it is "jakarta.validation" if the Java runtime version is at least 17, otherwise it is "javax.validation".
-
setJbvPackageBase
final Unit setJbvPackageBase(String jbvPackageBase)
Specifies the package for Java/Jakarta Bean Validation.
By default, it is "jakarta.validation" if the Java runtime version is at least 17, otherwise it is "javax.validation".
-
getFormatValidators
final CheckerMap getFormatValidators()
-
setFormatValidators
final Unit setFormatValidators(CheckerMap formatValidators)
-
getRuleCheckers
final CheckerMap getRuleCheckers()
-
setRuleCheckers
final Unit setRuleCheckers(CheckerMap ruleCheckers)
-
getStopAfterFirstError
final Boolean getStopAfterFirstError()
-
setStopAfterFirstError
final Unit setStopAfterFirstError(Boolean stopAfterFirstError)
-
getThrowExceptionIfValidationFailed
final Boolean getThrowExceptionIfValidationFailed()
-
setThrowExceptionIfValidationFailed
final Unit setThrowExceptionIfValidationFailed(Boolean throwExceptionIfValidationFailed)
-
getUseNamedBeanAsRuleValidator
final Boolean getUseNamedBeanAsRuleValidator()
-
setUseNamedBeanAsRuleValidator
final Unit setUseNamedBeanAsRuleValidator(Boolean useNamedBeanAsRuleValidator)
-
getSecurityValidation
final Boolean getSecurityValidation()
-
setSecurityValidation
final Unit setSecurityValidation(Boolean securityValidation)
-
isRequiredErrorCode
final String isRequiredErrorCode()
-
setRequiredErrorCode
final Unit setRequiredErrorCode(String isRequiredErrorCode)
-
isNotAllowedErrorCode
final String isNotAllowedErrorCode()
-
setNotAllowedErrorCode
final Unit setNotAllowedErrorCode(String isNotAllowedErrorCode)
-
isInvalidDataErrorCode
final String isInvalidDataErrorCode()
-
setInvalidDataErrorCode
final Unit setInvalidDataErrorCode(String isInvalidDataErrorCode)
-
isNotBase64ErrorCode
final String isNotBase64ErrorCode()
-
setNotBase64ErrorCode
final Unit setNotBase64ErrorCode(String isNotBase64ErrorCode)
-
isNotBooleanErrorCode
final String isNotBooleanErrorCode()
-
setNotBooleanErrorCode
final Unit setNotBooleanErrorCode(String isNotBooleanErrorCode)
-
isNotLongErrorCode
final String isNotLongErrorCode()
-
setNotLongErrorCode
final Unit setNotLongErrorCode(String isNotLongErrorCode)
-
isNotIntErrorCode
final String isNotIntErrorCode()
-
setNotIntErrorCode
final Unit setNotIntErrorCode(String isNotIntErrorCode)
-
isNotFloatErrorCode
final String isNotFloatErrorCode()
-
setNotFloatErrorCode
final Unit setNotFloatErrorCode(String isNotFloatErrorCode)
-
isNotDoubleErrorCode
final String isNotDoubleErrorCode()
-
setNotDoubleErrorCode
final Unit setNotDoubleErrorCode(String isNotDoubleErrorCode)
-
isNotNumberErrorCode
final String isNotNumberErrorCode()
-
setNotNumberErrorCode
final Unit setNotNumberErrorCode(String isNotNumberErrorCode)
-
isNotDateErrorCode
final String isNotDateErrorCode()
-
setNotDateErrorCode
final Unit setNotDateErrorCode(String isNotDateErrorCode)
-
isNotDateTimeErrorCode
final String isNotDateTimeErrorCode()
-
setNotDateTimeErrorCode
final Unit setNotDateTimeErrorCode(String isNotDateTimeErrorCode)
-
isNotAllowedValueErrorCode
final String isNotAllowedValueErrorCode()
-
setNotAllowedValueErrorCode
final Unit setNotAllowedValueErrorCode(String isNotAllowedValueErrorCode)
-
isTooSmallErrorCode
final String isTooSmallErrorCode()
-
setTooSmallErrorCode
final Unit setTooSmallErrorCode(String isTooSmallErrorCode)
-
isTooBigErrorCode
final String isTooBigErrorCode()
-
setTooBigErrorCode
final Unit setTooBigErrorCode(String isTooBigErrorCode)
-
isTooShortErrorCode
final String isTooShortErrorCode()
-
setTooShortErrorCode
final Unit setTooShortErrorCode(String isTooShortErrorCode)
-
isTooLongErrorCode
final String isTooLongErrorCode()
-
setTooLongErrorCode
final Unit setTooLongErrorCode(String isTooLongErrorCode)
-
isNotEqualErrorCode
final String isNotEqualErrorCode()
-
setNotEqualErrorCode
final Unit setNotEqualErrorCode(String isNotEqualErrorCode)
-
isNotMatchPatternErrorCode
final String isNotMatchPatternErrorCode()
-
setNotMatchPatternErrorCode
final Unit setNotMatchPatternErrorCode(String isNotMatchPatternErrorCode)
-
getHasTooFewItemsErrorCode
final String getHasTooFewItemsErrorCode()
-
setHasTooFewItemsErrorCode
final Unit setHasTooFewItemsErrorCode(String hasTooFewItemsErrorCode)
-
getHasTooManyItemsErrorCode
final String getHasTooManyItemsErrorCode()
-
setHasTooManyItemsErrorCode
final Unit setHasTooManyItemsErrorCode(String hasTooManyItemsErrorCode)
-
getHasDuplicatedItemsErrorCode
final String getHasDuplicatedItemsErrorCode()
-
setHasDuplicatedItemsErrorCode
final Unit setHasDuplicatedItemsErrorCode(String hasDuplicatedItemsErrorCode)
-
formatValidator
final ValidationParams formatValidator(String code, String validator)
-
formatValidator
final ValidationParams formatValidator(String code, CheckerRef checkerRef)
-
ruleValidator
final ValidationParams ruleValidator(String rule, String checkerClassName)
-
ruleValidator
final ValidationParams ruleValidator(String rule, CheckerRef checkerRef)
-
disableValidatorGeneration
final ValidationParams disableValidatorGeneration(Boolean value)
-
useJakartaBeanValidation
final ValidationParams useJakartaBeanValidation(Boolean value)
-
jbvPackageBase
final ValidationParams jbvPackageBase(String value)
-
stopAfterFirstError
final ValidationParams stopAfterFirstError(Boolean value)
-
throwExceptionIfValidationFailed
final ValidationParams throwExceptionIfValidationFailed(Boolean value)
-
useNamedBeanAsRuleValidator
final ValidationParams useNamedBeanAsRuleValidator(Boolean value)
-
securityValidation
final ValidationParams securityValidation(Boolean value)
-
copy
final ValidationParams copy()
-
-
-
-