Return the validations rules for the first selected element.
There are several ways to specify validation rules.
- Validation methods without parameters can be specified as classes on the element (recommended)
- Validation methods with parameters can be specified as attributes (recommended)
- Both can be specified as metadata using the metadata plugin
- Both can be specified using the rules-option of the validate()-method