Package com.kenshoo.pl.entity.spi
Interface PrototypeFieldValidator<T>
-
- Type Parameters:
T- entity type
- All Superinterfaces:
ChangeValidator
public interface PrototypeFieldValidator<T> extends ChangeValidator
Same asFieldValidatorbut for a field prototype.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityFieldPrototype<T>getPrototype()ValidationErrorvalidate(T value)Validates the value.
-
-
-
Method Detail
-
getPrototype
EntityFieldPrototype<T> getPrototype()
- Returns:
- the field prototype validated by the validator
-
validate
ValidationError validate(T value)
Validates the value.- Parameters:
value- new value of the field- Returns:
- validation error or
nullif none
-
-