public List<Classification> groupOf(String groupName) { if ("Flg".equals(name())) { return toClassificationList(MockCDef.Flg.groupOf(groupName)); } if ("MemberStatus".equals(name())) { return toClassificationList(MockCDef.MemberStatus.groupOf(groupName)); } throw new IllegalStateException("Unknown definition: " + this); // basically unreachable }
public Classification nameOf(String name) { if ("Flg".equals(name())) { return MockCDef.Flg.valueOf(name); } if ("MemberStatus".equals(name())) { return MockCDef.MemberStatus.valueOf(name); } throw new IllegalStateException("Unknown definition: " + this); // basically unreachable }