Package io.github.mmm.validation.pattern
Class ValidatorPatternSize
java.lang.Object
io.github.mmm.validation.AbstractValidator<Pattern>
io.github.mmm.validation.AbstractValueValidator<Pattern>
io.github.mmm.validation.main.AbstractValidatorRange<Pattern,Integer>
io.github.mmm.validation.main.AbstractValidatorSize<Pattern>
io.github.mmm.validation.pattern.ValidatorPatternSize
- All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>
,Validator<Pattern>
,Iterable<Validator<?>>
Validator
invalid reference
validating
length
of a given pattern
is within a predefined
Range
.- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.validation.main.AbstractValidatorRange
ID, range
Fields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY
-
Constructor Summary
ConstructorsConstructorDescriptionValidatorPatternSize
(int maxLength) The constructor.ValidatorPatternSize
(io.github.mmm.base.range.Range<Integer> range) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Integer
convertValue
(Pattern value) Converts the value to the type of the range.Methods inherited from class io.github.mmm.validation.main.AbstractValidatorSize
isLength
Methods inherited from class io.github.mmm.validation.main.AbstractValidatorRange
equals, getId, getMax, getMin, getRange, hashCode, validateNotNull
Methods inherited from class io.github.mmm.validation.AbstractValueValidator
validate, validateNull
Methods inherited from class io.github.mmm.validation.AbstractValidator
getChild, getChildCount, isDynamic, source2string, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.mmm.base.lang.Composable
iterator
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.github.mmm.validation.Validator
append, append, containsId, getChild, isMandatory, validate
-
Constructor Details
-
ValidatorPatternSize
The constructor.- Parameters:
range
- is theRange
the value has to becontained in
.
-
ValidatorPatternSize
public ValidatorPatternSize(int maxLength) The constructor.- Parameters:
maxLength
- themaximum
size
allowed for theCollection
values.
-
-
Method Details
-
convertValue
Description copied from class:AbstractValidatorRange
Converts the value to the type of the range.- Overrides:
convertValue
in classAbstractValidatorRange<Pattern,
Integer> - Parameters:
value
- is the value to convert.- Returns:
- the converted value.
-