This MyNodeValidator class have to implement getter methods for the fields which should be checked (e.g. fieldname Date (needs getDate() method)). this method has to return the Validator and in the notation above the method you can define a Validator Interface, also you can specify in the notation some parameters like the daterange: