object-oriented notation for Validator