Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name - the name of the enum constant to be returned.
This is a bit of a hack to mirror the old ValueType behavior, which would allow a rough compatibility between types. This
behavior is being phased out in the aggregations framework, in favor of explicitly listing supported types, but we haven't gotten
to fixing composite yet.