Class StringToEnumCoercion<T extends Enum>

  • Type Parameters:
    T - the type of enumeration
    All Implemented Interfaces:
    Coercion<String,​T>

    public final class StringToEnumCoercion<T extends Enum>
    extends Object
    implements Coercion<String,​T>
    A Coercion for converting strings into an instance of a particular enumerated type. The name is used as the key to identify the enum instance, in a case-insensitive fashion. Moved from tapestry-core to tapestry-ioc in release 5.3, but kept in same package for compatibility. Moved tapestry-ioc to commons in release 5.4, but kept in same package for compatibility.