Drupal investigation
The Validator component provides tools to validate values following the JSR-303 Bean Validation specification.