Example #1
0
 public List<Classification> groupOf(String groupName) {
   if ("Flg".equals(name())) {
     return toClassificationList(CDef.Flg.groupOf(groupName));
   }
   throw new IllegalStateException("Unknown definition: " + this); // basically unreachable
 }
Example #2
0
 public Classification nameOf(String name) {
   if ("Flg".equals(name())) {
     return CDef.Flg.valueOf(name);
   }
   throw new IllegalStateException("Unknown definition: " + this); // basically unreachable
 }
Example #3
0
 public List<Classification> listAll() {
   if ("Flg".equals(name())) {
     return toClassificationList(CDef.Flg.listAll());
   }
   throw new IllegalStateException("Unknown definition: " + this); // basically unreachable
 }
Example #4
0
 public Classification codeOf(Object code) {
   if ("Flg".equals(name())) {
     return CDef.Flg.codeOf(code);
   }
   throw new IllegalStateException("Unknown definition: " + this); // basically unreachable
 }