public class LengthParameterValidator extends BaseValueValidator<Object>
Modifier and Type | Class and Description |
---|---|
static class |
LengthParameterValidator.Builder
Builder class for a Length based validator.
|
Constructor and Description |
---|
LengthParameterValidator() |
Modifier and Type | Method and Description |
---|---|
static LengthParameterValidator.Builder |
Builder()
Method to get a LengthParameterValidator builder.
|
static LengthParameterValidator |
forParam(EidasParameterKeys paramKey)
Method to get LengthParameterValidator
|
protected Optional<Integer> |
getMaxParamSize()
Method to get the maximum size of the attribute with paramName.
|
protected boolean |
isValidValue(Object value)
Technical or business validation of the value
|
isValid, isValidationActive
protected boolean isValidValue(Object value)
BaseValueValidator
isValidValue
in class BaseValueValidator<Object>
value
- the value to validateprotected Optional<Integer> getMaxParamSize()
public static LengthParameterValidator.Builder Builder()
public static LengthParameterValidator forParam(EidasParameterKeys paramKey)
paramKey
- the EidasParameterKey for which the max size should be checkCopyright © 2020. All Rights Reserved.