public abstract class BaseValueValidator<T> extends Object implements ValueValidator<T>
Modifier and Type | Class and Description |
---|---|
static class |
BaseValueValidator.Builder<T extends BaseValueValidator>
Base implementation of ParameterValidator builders
|
Modifier | Constructor and Description |
---|---|
protected |
BaseValueValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(T value)
Check if the validation is active, if it is active it validates that the given value
is not blank and that it is valid.
|
protected boolean |
isValidationActive() |
protected abstract boolean |
isValidValue(T value)
Technical or business validation of the value
|
public final boolean isValid(T value)
isValid
in interface ValueValidator<T>
value
- the value to validateprotected abstract boolean isValidValue(T value)
value
- the value to validateprotected boolean isValidationActive()
Copyright © 2020. All Rights Reserved.