'Checkstyle disallow specific enum constant

Is there a way to use checkstyle to disallow use of a specific enum value (other than trying to catch it with a regex)?

I would like to prevent the usage of javax.persistence.CascadeType.ALL, but can only seem to find options to prevent using the entire javax.persistence.CascadeType enum.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source