Ejemplo n.º 1
0
 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
 }
Ejemplo n.º 2
0
 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
 }