I have a number of setter methods which take an enum. These are based on incoming objects attribute. Rather than write a bunch of these is there a way around having to hard code
Enums have valueOf() method that can be used to convert from String. Is it what you are looking for?