Package io.atlasmap.validators
Class StringLengthValidator
java.lang.Object
io.atlasmap.validators.StringLengthValidator
- All Implemented Interfaces:
AtlasValidator
-
Constructor Summary
ConstructorDescriptionStringLengthValidator
(ValidationScope scope, String violationMessage, int minLength, int maxLength) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
validate
(Object target, List<Validation> validations, String id) void
validate
(Object target, List<Validation> validations, String id, ValidationStatus status)
-
Constructor Details
-
StringLengthValidator
public StringLengthValidator(ValidationScope scope, String violationMessage, int minLength, int maxLength)
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceAtlasValidator
-
validate
- Specified by:
validate
in interfaceAtlasValidator
-
validate
public void validate(Object target, List<Validation> validations, String id, ValidationStatus status) - Specified by:
validate
in interfaceAtlasValidator
-