method

validate

validate(record)
public

Override this method in subclasses with validation logic, adding errors to the records errors array where necessary.