Class EnumConverter<T extends Enum<T>>

java.lang.Object
ubic.gemma.cli.util.EnumConverter<T>
All Implemented Interfaces:
org.apache.commons.cli.Converter<T,IllegalArgumentException>, EnumeratedConverter<T,IllegalArgumentException>

public class EnumConverter<T extends Enum<T>> extends Object implements EnumeratedConverter<T,IllegalArgumentException>
Convert Enum to string.

This converter accepts both snake-case and kebab-case strings. It will first attempt to match the string as-is, then it will perform an upper case match.

Author:
poirigui