Added setter for violation class.