Class ValueAcceptanceCriteria.Builder
- java.lang.Object
-
- de.xima.fc.interfaces.workflow.value.ValueAcceptanceCriteria.Builder
-
- Enclosing class:
- ValueAcceptanceCriteria
public static final class ValueAcceptanceCriteria.Builder extends Object
Builder for custom value acceptance criteria.- Since:
- 8.5.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueAcceptanceCriteria.BuilderallowExtraneousRecordFields()Allows extraneous fields inrecordsthat are not defined in the record descriptor.ValueAcceptanceCriteria.BuilderallowExtraneousRecordFields(boolean allowExtraneousRecordFields)Controls whether extraneous fields inrecordsare allowed that are not defined in the record descriptor.ValueAcceptanceCriteria.BuilderallowExtraneousTupleElements()Allows extraneous elements intuples, i.e. values at indices larger than the highest index defined in the tuple descriptor.ValueAcceptanceCriteria.BuilderallowExtraneousTupleElements(boolean allowExtraneousTupleElements)Controls whether extraneous elements intuplesare allowed, i.e. values at indices larger than the highest index defined in the tuple descriptor.ValueAcceptanceCriteria.BuilderallowExtraneousVoidValues()Allows values forvoiddescriptors.ValueAcceptanceCriteria.BuilderallowExtraneousVoidValues(boolean allowExtraneousVoidValues)Whether to allow values forvoiddescriptors.ValueAcceptanceCriteria.BuilderallowMismatchingConst()Allows constant values inconstantsto mismatch the defined constant value.ValueAcceptanceCriteria.BuilderallowMismatchingConst(boolean allowMismatchingConst)Controls whether constant values inconstantsare allowed to mismatch the defined constant value.ValueAcceptanceCriteria.BuilderallowMissingRequiredRecordFields()Allowsrecordsto have missing fields that are marked as required in the record descriptor.ValueAcceptanceCriteria.BuilderallowMissingRequiredRecordFields(boolean allowMissingRequiredRecordFields)Controls whetherrecordsare allowed to have missing fields that are marked as required in the record descriptor.ValueAcceptanceCriteria.BuilderallowMissingTupleElements()Allowstuplesto have fewer elements than defined in the tuple descriptor.ValueAcceptanceCriteria.BuilderallowMissingTupleElements(boolean allowMissingTupleElements)Controls whethertuplesare allowed to have fewer elements than defined in the tuple descriptor.ValueAcceptanceCriteria.BuilderallowNonStringKeys()ValueAcceptanceCriteria.BuilderallowNonStringKeys(boolean allowNonStringKeys)IValueAcceptanceCriteriabuild()Creates a new value acceptance criteria instance from the current builder state.ValueAcceptanceCriteria.BuilderdisableTypeCoercion()Disables type coercion of values.ValueAcceptanceCriteria.BuilderenableLargeStringInteroperability(boolean enableLargeStringInteroperability)Whether to treatStringandLargeStringas equivalent types for the purpose of value acceptance.ValueAcceptanceCriteria.BuilderenableTypeCoercion()Enables type coercion of values.ValueAcceptanceCriteria.BuilderenableTypeCoercion(Boolean enableTypeCoercion)Whether to enable type coercion of values.ValueAcceptanceCriteria.BuilderenforceListItemConformance()Requires that each item inlistsmust conform to the defined item value descriptor.ValueAcceptanceCriteria.BuilderenforceListItemConformance(boolean enforceListItemConformance)Controls whether each item inlistsmust conform to the defined item value descriptor.ValueAcceptanceCriteria.BuilderenforceListLengthLowerBound()Requires that the length oflistis enforced to not contain less than the defined minimum length.ValueAcceptanceCriteria.BuilderenforceListLengthLowerBound(boolean enforceListLengthLowerBound)Controls whether the length oflistis enforced to not contain less than the defined minimum length.ValueAcceptanceCriteria.BuilderenforceListLengthUpperBound()Requires that the length oflistsis enforced to not contain more items than the defined maximum length of the list.ValueAcceptanceCriteria.BuilderenforceListLengthUpperBound(boolean enforceListLengthUpperBound)Controls whether the length oflistsis enforced to not contain more items than the defined maximum length of the list.ValueAcceptanceCriteria.BuilderenforceMapValueConformance()Requires that each value inmapsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderenforceMapValueConformance(boolean enforceMapValueConformance)Controls whether each value inmapsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderenforceNumberRange()ValueAcceptanceCriteria.BuilderenforceNumberRange(boolean enforceNumberRange)ValueAcceptanceCriteria.BuilderenforceRecordOptionalFieldValueConformance()Requires that each optional field inrecordsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderenforceRecordOptionalFieldValueConformance(boolean enforceRecordOptionalFieldValueConformance)Controls whether each optional field inrecordsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderenforceRecordRequiredFieldValueConformance()Requires that each required field inrecordsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderenforceRecordRequiredFieldValueConformance(boolean enforceRecordRequiredFieldValueConformance)Controls whether each required field inrecordsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderenforceStringLengthLowerBound()Requires that the length ofstringsis enforced to not be shorter than the defined minimum length of the string.ValueAcceptanceCriteria.BuilderenforceStringLengthLowerBound(boolean enforceStringLengthLowerBound)Controls whether the length ofstringsis enforced to not be shorter than the defined minimum length of the string.ValueAcceptanceCriteria.BuilderenforceStringLengthUpperBound()Requires that the length ofstringsis enforced to not be longer than the defined maximum length of the string.ValueAcceptanceCriteria.BuilderenforceStringLengthUpperBound(boolean enforceStringLengthUpperBound)Controls whether the length ofstringsis enforced to not be longer than the defined maximum length of the string.ValueAcceptanceCriteria.BuilderenforceTupleElementConformance()Requires that each element intuplesmust conform to the defined value descriptor at the respective index.ValueAcceptanceCriteria.BuilderenforceTupleElementConformance(boolean enforceTupleElementConformance)Controls whether each element intuplesmust conform to the defined value descriptor at the respective index.ValueAcceptanceCriteria.BuilderforbidExtraneousRecordFields()Forbids extraneous fields inrecordsthat are not defined in the record descriptor.ValueAcceptanceCriteria.BuilderforbidExtraneousTupleElements()Forbids extraneous elements intuples, i.e. values at indices larger than the highest index defined in the tuple descriptor.ValueAcceptanceCriteria.BuilderforbidExtraneousVoidElements()Forbids values forvoiddescriptors.ValueAcceptanceCriteria.BuilderforbidMismatchingConst()Forbids constant values inconstantsto mismatch the defined constant value.ValueAcceptanceCriteria.BuilderforbidMissingRequiredRecordFields()Forbidsrecordsto have missing fields that are marked as required in the record descriptor.ValueAcceptanceCriteria.BuilderforbidMissingTupleElements()Forbidstuplesto have fewer elements than defined in the tuple descriptor.ValueAcceptanceCriteria.BuilderforbidNonStringKeys()ValueAcceptanceCriteria.BuilderignoreListItemConformance()Ignores the constraint that each an item inlistsmust conform to the defined item value descriptor.ValueAcceptanceCriteria.BuilderignoreListLengthLowerBound()Ignores the constraint that the length oflistsis enforced to not contain less than the defined minimum length.ValueAcceptanceCriteria.BuilderignoreListLengthUpperBound()Ignores the constraint that the length oflistsis enforced to not contain more items than the defined maximum length of the list.ValueAcceptanceCriteria.BuilderignoreMapValueConformance()Ignores the constraint that each value inmapsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderignoreNumberRange()ValueAcceptanceCriteria.BuilderignoreRecordOptionalFieldValueConformance()Ignores the constraint that each optional field inrecordsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderignoreRecordRequiredFieldValueConformance()Ignores the constraint that each required field inrecordsmust conform to the defined value descriptor.ValueAcceptanceCriteria.BuilderignoreStringLengthLowerBound()Ignores the constraint that the length ofstringsis enforced to not be shorter than the defined minimum length of the string.ValueAcceptanceCriteria.BuilderignoreStringLengthUpperBound()Ignores the constraint that the length ofstringsis enforced to not be longer than the defined maximum length of the string.ValueAcceptanceCriteria.BuilderignoreTupleElementConformance()Ignores the constraint that each element intuplesmust conform to the defined value descriptor at the respective index.ValueAcceptanceCriteria.BuildertypeCoercer(IValueDescriptorTypeCoercer typeCoercer)Enables types coercion of values.
-
-
-
Method Detail
-
allowExtraneousRecordFields
public ValueAcceptanceCriteria.Builder allowExtraneousRecordFields(boolean allowExtraneousRecordFields)
Controls whether extraneous fields inrecordsare allowed that are not defined in the record descriptor.- Parameters:
allowExtraneousRecordFields- true if extraneous fields are allowed, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
allowExtraneousRecordFields
public ValueAcceptanceCriteria.Builder allowExtraneousRecordFields()
Allows extraneous fields inrecordsthat are not defined in the record descriptor.- Returns:
- This builder instance for chaining method calls.
-
allowExtraneousTupleElements
public ValueAcceptanceCriteria.Builder allowExtraneousTupleElements(boolean allowExtraneousTupleElements)
Controls whether extraneous elements intuplesare allowed, i.e. values at indices larger than the highest index defined in the tuple descriptor.- Parameters:
allowExtraneousTupleElements- true if extraneous elements are allowed, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
allowExtraneousTupleElements
public ValueAcceptanceCriteria.Builder allowExtraneousTupleElements()
Allows extraneous elements intuples, i.e. values at indices larger than the highest index defined in the tuple descriptor.- Returns:
- This builder instance for chaining method calls.
-
allowExtraneousVoidValues
public ValueAcceptanceCriteria.Builder allowExtraneousVoidValues(boolean allowExtraneousVoidValues)
Whether to allow values forvoiddescriptors. Void values must not have any value, i.e. must benull. This criterion controls whether such values are accepted or rejected.- Parameters:
allowExtraneousVoidValues- true if void values are accepted, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
allowExtraneousVoidValues
public ValueAcceptanceCriteria.Builder allowExtraneousVoidValues()
Allows values forvoiddescriptors. Void values must not have any value, i.e. must benull. This criterion controls whether such values are accepted or rejected.- Returns:
- This builder instance for chaining method calls.
-
allowMismatchingConst
public ValueAcceptanceCriteria.Builder allowMismatchingConst(boolean allowMismatchingConst)
Controls whether constant values inconstantsare allowed to mismatch the defined constant value. Also applies toINullValueDescriptor, which is a constant null value.- Parameters:
allowMismatchingConst- true if mismatching constants are allowed, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
allowMismatchingConst
public ValueAcceptanceCriteria.Builder allowMismatchingConst()
Allows constant values inconstantsto mismatch the defined constant value. Also applies toINullValueDescriptor, which is a constant null value.- Returns:
- This builder instance for chaining method calls.
-
allowMissingRequiredRecordFields
public ValueAcceptanceCriteria.Builder allowMissingRequiredRecordFields(boolean allowMissingRequiredRecordFields)
Controls whetherrecordsare allowed to have missing fields that are marked as required in the record descriptor.- Parameters:
allowMissingRequiredRecordFields- true if missing required fields are allowed, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
allowMissingRequiredRecordFields
public ValueAcceptanceCriteria.Builder allowMissingRequiredRecordFields()
Allowsrecordsto have missing fields that are marked as required in the record descriptor.- Returns:
- This builder instance for chaining method calls.
-
allowMissingTupleElements
public ValueAcceptanceCriteria.Builder allowMissingTupleElements(boolean allowMissingTupleElements)
Controls whethertuplesare allowed to have fewer elements than defined in the tuple descriptor.- Parameters:
allowMissingTupleElements- true if missing fields are allowed, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
allowMissingTupleElements
public ValueAcceptanceCriteria.Builder allowMissingTupleElements()
Allowstuplesto have fewer elements than defined in the tuple descriptor.- Returns:
- This builder instance for chaining method calls.
-
allowNonStringKeys
public ValueAcceptanceCriteria.Builder allowNonStringKeys(boolean allowNonStringKeys)
The keys ofmapsandrecordsmust be strings. This criterion controls whether non-string keys are ignored when checking for conformance.- Parameters:
allowNonStringKeys- true if non-string keys are allowed, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
allowNonStringKeys
public ValueAcceptanceCriteria.Builder allowNonStringKeys()
Allows the keys ofmapsandrecordsto be non-strings. Keys must be strings, but this criterion controls whether non-string keys are ignored when checking for conformance.- Returns:
- This builder instance for chaining method calls.
-
build
public IValueAcceptanceCriteria build()
Creates a new value acceptance criteria instance from the current builder state.- Returns:
- A new value acceptance criteria instance.
-
disableTypeCoercion
public ValueAcceptanceCriteria.Builder disableTypeCoercion()
Disables type coercion of values.- Returns:
- This builder instance for chaining method calls.
-
enableLargeStringInteroperability
public ValueAcceptanceCriteria.Builder enableLargeStringInteroperability(boolean enableLargeStringInteroperability)
Whether to treatStringandLargeStringas equivalent types for the purpose of value acceptance. This allows, for example, aIStringValueDescriptorto accept aLargeStringvalue.- Parameters:
enableLargeStringInteroperability- true to enable interoperability, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enableTypeCoercion
public ValueAcceptanceCriteria.Builder enableTypeCoercion(Boolean enableTypeCoercion)
Whether to enable type coercion of values. When true, allows coercion of values to conform to the defined value descriptor. For example, a floating-point number may be coerced to an integer by truncating the decimal part; or a string representing a number may be coerced to an actual numeric type.- Parameters:
enableTypeCoercion- true if type coercion is enabled, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enableTypeCoercion
public ValueAcceptanceCriteria.Builder enableTypeCoercion()
Enables type coercion of values. Allows coercion of values to conform to the defined value descriptor. For example, a floating-point number may be coerced to an integer by truncating the decimal part; or a string representing a number may be coerced to an actual numeric type.- Returns:
- This builder instance for chaining method calls.
-
enforceListItemConformance
public ValueAcceptanceCriteria.Builder enforceListItemConformance(boolean enforceListItemConformance)
Controls whether each item inlistsmust conform to the defined item value descriptor.- Parameters:
enforceListItemConformance- true if each item must conform, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceListItemConformance
public ValueAcceptanceCriteria.Builder enforceListItemConformance()
Requires that each item inlistsmust conform to the defined item value descriptor.- Returns:
- This builder instance for chaining method calls.
-
enforceListLengthLowerBound
public ValueAcceptanceCriteria.Builder enforceListLengthLowerBound(boolean enforceListLengthLowerBound)
Controls whether the length oflistis enforced to not contain less than the defined minimum length.- Parameters:
enforceListLengthLowerBound- true if the list length lower bound is enforced, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceListLengthLowerBound
public ValueAcceptanceCriteria.Builder enforceListLengthLowerBound()
Requires that the length oflistis enforced to not contain less than the defined minimum length.- Returns:
- This builder instance for chaining method calls.
-
enforceListLengthUpperBound
public ValueAcceptanceCriteria.Builder enforceListLengthUpperBound(boolean enforceListLengthUpperBound)
Controls whether the length oflistsis enforced to not contain more items than the defined maximum length of the list.- Parameters:
enforceListLengthUpperBound- true if the list length upper bound is enforced, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceListLengthUpperBound
public ValueAcceptanceCriteria.Builder enforceListLengthUpperBound()
Requires that the length oflistsis enforced to not contain more items than the defined maximum length of the list.- Returns:
- This builder instance for chaining method calls.
-
enforceMapValueConformance
public ValueAcceptanceCriteria.Builder enforceMapValueConformance(boolean enforceMapValueConformance)
Controls whether each value inmapsmust conform to the defined value descriptor.- Parameters:
enforceMapValueConformance- true if each value must conform, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceMapValueConformance
public ValueAcceptanceCriteria.Builder enforceMapValueConformance()
Requires that each value inmapsmust conform to the defined value descriptor.- Returns:
- This builder instance for chaining method calls.
-
enforceNumberRange
public ValueAcceptanceCriteria.Builder enforceNumberRange(boolean enforceNumberRange)
Controls whether the value ofintegersandfloatsis enforced to be within the defined minimum and maximum value of the number.- Parameters:
enforceNumberRange- true if the number range is enforced, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceNumberRange
public ValueAcceptanceCriteria.Builder enforceNumberRange()
Requires that the value ofintegersandfloatsis enforced to be within the defined minimum and maximum value of the number.- Returns:
- This builder instance for chaining method calls.
-
enforceRecordOptionalFieldValueConformance
public ValueAcceptanceCriteria.Builder enforceRecordOptionalFieldValueConformance(boolean enforceRecordOptionalFieldValueConformance)
Controls whether each optional field inrecordsmust conform to the defined value descriptor.- Parameters:
enforceRecordOptionalFieldValueConformance- true if each optional field must conform, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceRecordOptionalFieldValueConformance
public ValueAcceptanceCriteria.Builder enforceRecordOptionalFieldValueConformance()
Requires that each optional field inrecordsmust conform to the defined value descriptor.- Returns:
- This builder instance for chaining method calls.
-
enforceRecordRequiredFieldValueConformance
public ValueAcceptanceCriteria.Builder enforceRecordRequiredFieldValueConformance(boolean enforceRecordRequiredFieldValueConformance)
Controls whether each required field inrecordsmust conform to the defined value descriptor.- Parameters:
enforceRecordRequiredFieldValueConformance- true if each required field must conform, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceRecordRequiredFieldValueConformance
public ValueAcceptanceCriteria.Builder enforceRecordRequiredFieldValueConformance()
Requires that each required field inrecordsmust conform to the defined value descriptor.- Returns:
- This builder instance for chaining method calls.
-
enforceStringLengthLowerBound
public ValueAcceptanceCriteria.Builder enforceStringLengthLowerBound(boolean enforceStringLengthLowerBound)
Controls whether the length ofstringsis enforced to not be shorter than the defined minimum length of the string.- Parameters:
enforceStringLengthLowerBound- true if the string length lower bound is enforced, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceStringLengthLowerBound
public ValueAcceptanceCriteria.Builder enforceStringLengthLowerBound()
Requires that the length ofstringsis enforced to not be shorter than the defined minimum length of the string.- Returns:
- This builder instance for chaining method calls.
-
enforceStringLengthUpperBound
public ValueAcceptanceCriteria.Builder enforceStringLengthUpperBound(boolean enforceStringLengthUpperBound)
Controls whether the length ofstringsis enforced to not be longer than the defined maximum length of the string.- Parameters:
enforceStringLengthUpperBound- true if the string length upper bound is enforced, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceStringLengthUpperBound
public ValueAcceptanceCriteria.Builder enforceStringLengthUpperBound()
Requires that the length ofstringsis enforced to not be longer than the defined maximum length of the string.- Returns:
- This builder instance for chaining method calls.
-
enforceTupleElementConformance
public ValueAcceptanceCriteria.Builder enforceTupleElementConformance(boolean enforceTupleElementConformance)
Controls whether each element intuplesmust conform to the defined value descriptor at the respective index.- Parameters:
enforceTupleElementConformance- true if each element must conform, false otherwise.- Returns:
- This builder instance for chaining method calls.
-
enforceTupleElementConformance
public ValueAcceptanceCriteria.Builder enforceTupleElementConformance()
Requires that each element intuplesmust conform to the defined value descriptor at the respective index.- Returns:
- This builder instance for chaining method calls.
-
forbidExtraneousRecordFields
public ValueAcceptanceCriteria.Builder forbidExtraneousRecordFields()
Forbids extraneous fields inrecordsthat are not defined in the record descriptor.- Returns:
- This builder instance for chaining method calls.
-
forbidExtraneousTupleElements
public ValueAcceptanceCriteria.Builder forbidExtraneousTupleElements()
Forbids extraneous elements intuples, i.e. values at indices larger than the highest index defined in the tuple descriptor.- Returns:
- This builder instance for chaining method calls.
-
forbidExtraneousVoidElements
public ValueAcceptanceCriteria.Builder forbidExtraneousVoidElements()
Forbids values forvoiddescriptors. Void values must not have any value, i.e. must benull. This criterion controls whether such values are accepted or rejected.- Returns:
- This builder instance for chaining method calls.
-
forbidMismatchingConst
public ValueAcceptanceCriteria.Builder forbidMismatchingConst()
Forbids constant values inconstantsto mismatch the defined constant value. Also applies toINullValueDescriptor, which is a constant null value.- Returns:
- This builder instance for chaining method calls.
-
forbidMissingRequiredRecordFields
public ValueAcceptanceCriteria.Builder forbidMissingRequiredRecordFields()
Forbidsrecordsto have missing fields that are marked as required in the record descriptor.- Returns:
- This builder instance for chaining method calls.
-
forbidMissingTupleElements
public ValueAcceptanceCriteria.Builder forbidMissingTupleElements()
Forbidstuplesto have fewer elements than defined in the tuple descriptor.- Returns:
- This builder instance for chaining method calls.
-
forbidNonStringKeys
public ValueAcceptanceCriteria.Builder forbidNonStringKeys()
Forbids the keys ofmapsandrecordsto be non-strings. Keys must be strings, but this criterion controls whether non-string keys are ignored when checking for conformance.- Returns:
- This builder instance for chaining method calls.
-
ignoreListItemConformance
public ValueAcceptanceCriteria.Builder ignoreListItemConformance()
Ignores the constraint that each an item inlistsmust conform to the defined item value descriptor.- Returns:
- This builder instance for chaining method calls.
-
ignoreListLengthLowerBound
public ValueAcceptanceCriteria.Builder ignoreListLengthLowerBound()
Ignores the constraint that the length oflistsis enforced to not contain less than the defined minimum length.- Returns:
- This builder instance for chaining method calls.
-
ignoreListLengthUpperBound
public ValueAcceptanceCriteria.Builder ignoreListLengthUpperBound()
Ignores the constraint that the length oflistsis enforced to not contain more items than the defined maximum length of the list.- Returns:
- This builder instance for chaining method calls.
-
ignoreMapValueConformance
public ValueAcceptanceCriteria.Builder ignoreMapValueConformance()
Ignores the constraint that each value inmapsmust conform to the defined value descriptor.- Returns:
- This builder instance for chaining method calls.
-
ignoreNumberRange
public ValueAcceptanceCriteria.Builder ignoreNumberRange()
Ignores the constraint that the value ofintegersandfloatsis enforced to be within the defined minimum and maximum value of the number.- Returns:
- This builder instance for chaining method calls.
-
ignoreRecordOptionalFieldValueConformance
public ValueAcceptanceCriteria.Builder ignoreRecordOptionalFieldValueConformance()
Ignores the constraint that each optional field inrecordsmust conform to the defined value descriptor.- Returns:
- This builder instance for chaining method calls.
-
ignoreRecordRequiredFieldValueConformance
public ValueAcceptanceCriteria.Builder ignoreRecordRequiredFieldValueConformance()
Ignores the constraint that each required field inrecordsmust conform to the defined value descriptor.- Returns:
- This builder instance for chaining method calls.
-
ignoreStringLengthLowerBound
public ValueAcceptanceCriteria.Builder ignoreStringLengthLowerBound()
Ignores the constraint that the length ofstringsis enforced to not be shorter than the defined minimum length of the string.- Returns:
- This builder instance for chaining method calls.
-
ignoreStringLengthUpperBound
public ValueAcceptanceCriteria.Builder ignoreStringLengthUpperBound()
Ignores the constraint that the length ofstringsis enforced to not be longer than the defined maximum length of the string.- Returns:
- This builder instance for chaining method calls.
-
ignoreTupleElementConformance
public ValueAcceptanceCriteria.Builder ignoreTupleElementConformance()
Ignores the constraint that each element intuplesmust conform to the defined value descriptor at the respective index.- Returns:
- This builder instance for chaining method calls.
-
typeCoercer
public ValueAcceptanceCriteria.Builder typeCoercer(IValueDescriptorTypeCoercer typeCoercer)
Enables types coercion of values. Sets a custom type coercer to use. For example, a floating-point number may be coerced to an integer by truncating the decimal part; or a string representing a number may be coerced to an actual numeric type.- Parameters:
typeCoercer- The type coercer to use.- Returns:
- This builder instance for chaining method calls.
-
-