add getter and setter
add test for #5a6c10d
fix method name, add method 'setValueNames'

'set' -> 'add'
update test
fix typo
fix comments
Merge pull request #5199 from overtrue/4.2

[4.2] add setter and getter for Validatior