public class ChargingPlanValidator extends java.lang.Object implements com.highdeal.util.validation.Validator<ChargingPlanModel,ChargingPlanValidator.ChargingPlanContext>
| Modifier and Type | Class and Description |
|---|---|
static class |
ChargingPlanValidator.ChargingPlanContext |
| Constructor and Description |
|---|
ChargingPlanValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
validate(ChargingPlanModel e,
ChargingPlanValidator.ChargingPlanContext c)
This method validates the object given 0ni argument.
|
public void validate(ChargingPlanModel e, ChargingPlanValidator.ChargingPlanContext c) throws com.highdeal.util.validation.ValidationErrorException
com.highdeal.util.validation.Validator
When the object isn't valid, an ErrorException is thrown containing the stack of errors.
The object is validated by the Validator when the exception isn't thrown.
validate in interface com.highdeal.util.validation.Validator<ChargingPlanModel,ChargingPlanValidator.ChargingPlanContext>e - the object that the Validator has to validatec - the context used during the validation of the object. Anything could be store inside in order to ease the validation or to share data.com.highdeal.util.validation.ValidationErrorException - the exception is thrown when the object isn't validate by the Validator, it isn't thrown if the object is valid.