Class AbstractSizeWithoutSeparatorsValidator<A extends Annotation>
java.lang.Object
de.knightsoftnet.validators.shared.impl.AbstractSizeWithoutSeparatorsValidator<A>
- All Implemented Interfaces:
jakarta.validation.ConstraintValidator<A,Object>
- Direct Known Subclasses:
AlternateSizeValidator,SizeWithoutSeparatorsValidator
public abstract class AbstractSizeWithoutSeparatorsValidator<A extends Annotation>
extends Object
implements jakarta.validation.ConstraintValidator<A,Object>
Check if a field's size has one of the two given sizes.
- Author:
- Manfred Tremmel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleantrue if minus should be ignored.protected booleantrue if slashes should be ignored.protected booleantrue if whitespaces should be ignored. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intget string size without filtered parameters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.validation.ConstraintValidator
initialize, isValid
-
Field Details
-
ignoreWhiteSpaces
protected boolean ignoreWhiteSpacestrue if whitespaces should be ignored. -
ignoreMinus
protected boolean ignoreMinustrue if minus should be ignored. -
ignoreSlashes
protected boolean ignoreSlashestrue if slashes should be ignored.
-
-
Constructor Details
-
AbstractSizeWithoutSeparatorsValidator
public AbstractSizeWithoutSeparatorsValidator()
-
-
Method Details
-
stringSizeWithoutParameters
get string size without filtered parameters.- Parameters:
value- containing string- Returns:
- size without filtered parameters
-