public static Choice getAccountTypes() { Choice list = new Choice(); for (AccountType v : AccountType.values()) { list.add(v.name()); } return list; }
public static int lookupOrdinal(String s) { AccountType t = valueOf(AccountType.class, s); return t.ordinal(); }