Class DataDictionaryValidatorImpl.DataDictionaryValidationBuilderImpl
java.lang.Object
com.flowable.platform.engine.impl.datadictionary.validation.DataDictionaryValidatorImpl.DataDictionaryValidationBuilderImpl
- All Implemented Interfaces:
DataDictionaryValidationBuilder
- Enclosing class:
- DataDictionaryValidatorImpl
protected static class DataDictionaryValidatorImpl.DataDictionaryValidationBuilderImpl
extends Object
implements DataDictionaryValidationBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DictionaryType
protected TypeProperty
protected boolean
protected final DataDictionaryValidatorImpl
protected Object
protected boolean
protected String
-
Constructor Summary
ConstructorsConstructorDescriptionDataDictionaryValidationBuilderImpl
(DataDictionaryValidatorImpl dataDictionaryValidator) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
getValue()
boolean
type
(DictionaryType type) Sets the DictionaryType for the validation.typeProperty
(TypeProperty property) Adds a type property to the validation configuration.Configures the builder to perform only a type compatibility check, bypassing other constraint checks.validate()
Executes the validation process based on the configured parameters.Specifies the value to be validated.variableName
(String variableName) Sets the name of the variable associated with the value being validated.
-
Field Details
-
validator
-
variableName
-
typeProperty
-
type
-
value
-
typeValidationOnly
protected boolean typeValidationOnly -
valueInitialized
protected boolean valueInitialized
-
-
Constructor Details
-
DataDictionaryValidationBuilderImpl
-
-
Method Details
-
typeProperty
Description copied from interface:DataDictionaryValidationBuilder
Adds a type property to the validation configuration.- Specified by:
typeProperty
in interfaceDataDictionaryValidationBuilder
- Parameters:
property
- The TypeProperty that describes the expected type and constraints of the property.- Returns:
- The current instance for chaining method calls.
-
type
Description copied from interface:DataDictionaryValidationBuilder
Sets the DictionaryType for the validation.- Specified by:
type
in interfaceDataDictionaryValidationBuilder
- Parameters:
type
- The DictionaryType to be used in the validation process.- Returns:
- The current instance for chaining method calls.
-
value
Description copied from interface:DataDictionaryValidationBuilder
Specifies the value to be validated.- Specified by:
value
in interfaceDataDictionaryValidationBuilder
- Parameters:
valueToValidate
- The value that will be subjected to validation.- Returns:
- The current instance for chaining method calls.
-
variableName
Description copied from interface:DataDictionaryValidationBuilder
Sets the name of the variable associated with the value being validated. This can be used for identification purposes in the validation results.- Specified by:
variableName
in interfaceDataDictionaryValidationBuilder
- Parameters:
variableName
- The name of the variable.- Returns:
- The current instance for chaining method calls.
-
typeValidationOnly
Description copied from interface:DataDictionaryValidationBuilder
Configures the builder to perform only a type compatibility check, bypassing other constraint checks.- Specified by:
typeValidationOnly
in interfaceDataDictionaryValidationBuilder
- Returns:
- The current instance for chaining method calls.
-
validate
Description copied from interface:DataDictionaryValidationBuilder
Executes the validation process based on the configured parameters.- Specified by:
validate
in interfaceDataDictionaryValidationBuilder
- Returns:
- ValidationResult An object containing the results of the validation process.
-
getVariableName
-
getTypeProperty
-
getType
-
getValue
-
isTypeValidationOnly
public boolean isTypeValidationOnly()
-