Package com.kenshoo.pl.entity.spi
Interface PrototypeFieldsCombinationValidator
-
- All Superinterfaces:
ChangeValidator
public interface PrototypeFieldsCombinationValidator extends ChangeValidator
Same asFieldsCombinationValidatorbut defined in terms of field prototypes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<EntityFieldPrototype<?>>getPrototypes()ValidationErrorvalidate(PrototypeFieldsCombination<?> fieldsCombination)Implements the validation and return an error if there is.
-
-
-
Method Detail
-
getPrototypes
java.util.Collection<EntityFieldPrototype<?>> getPrototypes()
- Returns:
- the list of fields whose combination is being validated
-
validate
ValidationError validate(PrototypeFieldsCombination<?> fieldsCombination)
Implements the validation and return an error if there is.- Parameters:
fieldsCombination- the map containing the fields specified bygetPrototypes(). If a field is being modified by the command, its new value is going to be in the map, otherwise the existing value would be passed.- Returns:
- validation error if there is or
nullif OK
-
-