List of usage examples for org.apache.commons.lang.enums EnumUtils getEnumList
public static List getEnumList(Class enumClass)
Gets the List of Enum objects using the Enum class.
The list is in the order that the objects were created (source code order).
If the requested class has no enum objects an empty List is returned.
From source file:org.sipfoundry.sipxconfig.components.EnumPropertySelectionModel.java
public void setEnumClass(Class enumeration) { List list = EnumUtils.getEnumList(enumeration); m_options = (Enum[]) list.toArray(new Enum[list.size()]); }