Class AbstractWordConstraint
- java.lang.Object
-
- com.github.damianwajser.validator.constraint.AbstractConstraint
-
- com.github.damianwajser.validator.constraint.strings.abstracts.AbstractWordConstraint
-
- Direct Known Subclasses:
AlphaNumericConstraint,WordConstraint
public abstract class AbstractWordConstraint extends AbstractConstraint
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanallowSpacesprotected intmaxprotected intmin-
Fields inherited from class com.github.damianwajser.validator.constraint.AbstractConstraint
excludes, isNulleable, onlyIn
-
-
Constructor Summary
Constructors Constructor Description AbstractWordConstraint()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleanhasError(Object field, javax.validation.ConstraintValidatorContext cxt)protected abstract booleanisAlpha(Object field, boolean allowSpaces)-
Methods inherited from class com.github.damianwajser.validator.constraint.AbstractConstraint
currentHttpMethodIsSkippeable, getCurrentHttpMethod, getCurrentHttpRequest, initialize, isValid
-
-
-
-
Method Detail
-
hasError
protected boolean hasError(Object field, javax.validation.ConstraintValidatorContext cxt)
- Specified by:
hasErrorin classAbstractConstraint
-
isAlpha
protected abstract boolean isAlpha(Object field, boolean allowSpaces)
-
-