Package io.github.mmm.validation.pattern
Class ValidatorBuilderPattern<PARENT>
java.lang.Object
io.github.mmm.validation.main.ObjectValidatorBuilder<Pattern,PARENT,ValidatorBuilderPattern<PARENT>>
io.github.mmm.validation.pattern.ValidatorBuilderPattern<PARENT>
- Type Parameters:
PARENT- the generic type of theparent builder.
- All Implemented Interfaces:
io.github.mmm.base.lang.Builder<Validator<? super Pattern>>,ValidatorRegistry<Pattern,ValidatorBuilderPattern<PARENT>>
public class ValidatorBuilderPattern<PARENT>
extends ObjectValidatorBuilder<Pattern,PARENT,ValidatorBuilderPattern<PARENT>>
Validator builder for String.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method allows to define a range in a generic way.Methods inherited from class io.github.mmm.validation.main.ObjectValidatorBuilder
add, add, and, build, getValidators, mandatory, max, min, self
-
Constructor Details
-
ValidatorBuilderPattern
The constructor.- Parameters:
parent- theparentbuilder.
-
-
Method Details
-
range
- Parameters:
min- the minimum length allowed ornullfor no lower bound.max- the maximum length allowed ornullfor no upper bound.- Returns:
- this build instance for fluent API calls.
-
range
Description copied from class:ObjectValidatorBuilderThis method allows to define a range in a generic way. If you have a properly typed builder please use more specific methods such asComparableValidatorBuilder.range(io.github.mmm.base.range.Range)instead.- Specified by:
rangein classObjectValidatorBuilder<Pattern,PARENT, ValidatorBuilderPattern<PARENT>> - Parameters:
min- the minimum value allowed ornullfor no lower bound.max- the maximum value allowed ornullfor no upper bound.- Returns:
- this build instance for fluent API calls.
-