Class NullFieldValidatorImpl<E extends EntityType<E>,T>
- java.lang.Object
-
- com.kenshoo.pl.entity.spi.helpers.NullFieldValidatorImpl<E,T>
-
- All Implemented Interfaces:
ChangeValidator,FieldValidator<E,T>
public class NullFieldValidatorImpl<E extends EntityType<E>,T> extends java.lang.Object implements FieldValidator<E,T>
-
-
Constructor Summary
Constructors Constructor Description NullFieldValidatorImpl(EntityField<E,T> entityField, java.lang.String errorCode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationErrorvalidate(T fieldValue)Validates the value.EntityField<E,T>validatedField()
-
-
-
Constructor Detail
-
NullFieldValidatorImpl
public NullFieldValidatorImpl(EntityField<E,T> entityField, java.lang.String errorCode)
-
-
Method Detail
-
validatedField
public EntityField<E,T> validatedField()
- Specified by:
validatedFieldin interfaceFieldValidator<E extends EntityType<E>,T>- Returns:
- the field validated by the validator
-
validate
public ValidationError validate(T fieldValue)
Description copied from interface:FieldValidatorValidates the value.- Specified by:
validatein interfaceFieldValidator<E extends EntityType<E>,T>- Parameters:
fieldValue- new value of the field- Returns:
- validation error or
nullif none
-
-