You can buy this project and download/modify it how often you want.
Generated classes by antlr to support the validwhen validator.
validwhen