Class PluginValidationRuleValidateParams.Builder
java.lang.Object
de.xima.fc.interfaces.plugin.param.validation.PluginValidationRuleValidateParams.Builder
- Enclosing class:
PluginValidationRuleValidateParams
A builder for plugin validation rule validation parameters.
- Since:
- 8.5.4
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new plugin validation rule validation parameters instance with the current state of this builder.defaultMessage(String defaultMessage) Sets the default validation message for the validation parameters.item(IXItemPropertiesData item) Sets the properties of the form item being validated.Sets the locale for locale-sensitive operations, e.g. the language of the form being validated.repetitionIndex(int repetitionIndex) Sets the repetition index for repeated items. -1 for non-repeated items.Sets the value to validate.
-
Method Details
-
build
Creates a new plugin validation rule validation parameters instance with the current state of this builder.- Returns:
- A new plugin validation rule validation parameters instance.
-
defaultMessage
Sets the default validation message for the validation parameters. Should be set, if not set, uses a generic default message.- Parameters:
defaultMessage- The default validation message.- Returns:
- This builder instance for chaining.
-
item
Sets the properties of the form item being validated. This is required.- Parameters:
item- The properties of the form item being validated.- Returns:
- This builder instance for chaining.
-
locale
Sets the locale for locale-sensitive operations, e.g. the language of the form being validated. Defaults to English.- Parameters:
locale- The locale for locale-sensitive operations.- Returns:
- This builder instance for chaining.
-
repetitionIndex
Sets the repetition index for repeated items. -1 for non-repeated items. Defaults to -1.- Parameters:
repetitionIndex- The repetition index for repeated items, or -1 for non-repeated items.- Returns:
- This builder instance for chaining.
-
value
Sets the value to validate. Default to an empty string if not set.- Parameters:
value- The value to validate.- Returns:
- This builder instance for chaining.
-