Package io.github.mmm.validation.string
Class ValidatorCharSequnceSize
java.lang.Object
io.github.mmm.validation.AbstractValidator<V>
io.github.mmm.validation.AbstractValueValidator<V>
io.github.mmm.validation.main.AbstractValidatorRange<V,Integer>
io.github.mmm.validation.main.AbstractValidatorSize<CharSequence>
io.github.mmm.validation.string.ValidatorCharSequnceSize
- All Implemented Interfaces:
io.github.mmm.base.lang.Composable<Validator<?>>,Validator<CharSequence>,Iterable<Validator<?>>
- Since:
- 1.0.0
-
Field Summary
Fields inherited from class io.github.mmm.validation.main.AbstractValidatorRange
ID, rangeFields inherited from interface io.github.mmm.validation.Validator
ID_MANDATORY -
Constructor Summary
ConstructorsConstructorDescriptionValidatorCharSequnceSize(int maxLength) The constructor.ValidatorCharSequnceSize(io.github.mmm.base.range.Range<Integer> range) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected IntegerconvertValue(CharSequence value) Converts the value to the type of the range.Methods inherited from class io.github.mmm.validation.main.AbstractValidatorSize
isLengthMethods inherited from class io.github.mmm.validation.main.AbstractValidatorRange
equals, getId, getMax, getMin, getRange, hashCode, validateNotNullMethods inherited from class io.github.mmm.validation.AbstractValueValidator
validate, validateNullMethods inherited from class io.github.mmm.validation.AbstractValidator
getChild, getChildCount, isDynamic, source2string, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.base.lang.Composable
iteratorMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.github.mmm.validation.Validator
append, append, containsId, getChild, isMandatory, validate
-
Constructor Details
-
ValidatorCharSequnceSize
The constructor.- Parameters:
range- is theRangethe value has to becontained in.
-
ValidatorCharSequnceSize
public ValidatorCharSequnceSize(int maxLength) The constructor.- Parameters:
maxLength- themaximumsizeallowed for theCollectionvalues.
-
-
Method Details
-
convertValue
Description copied from class:AbstractValidatorRangeConverts the value to the type of the range.- Overrides:
convertValuein classAbstractValidatorRange<CharSequence,Integer> - Parameters:
value- is the value to convert.- Returns:
- the converted value.
-