Пример #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
 }
Пример #2
0
 public Classification nameOf(String name) {
   if ("Flg".equals(name())) {
     return CDef.Flg.valueOf(name);
   }
   throw new IllegalStateException("Unknown definition: " + this); // basically unreachable
 }
Пример #3
0
 public List<Classification> listAll() {
   if ("Flg".equals(name())) {
     return toClassificationList(CDef.Flg.listAll());
   }
   throw new IllegalStateException("Unknown definition: " + this); // basically unreachable
 }
Пример #4
0
 public Classification codeOf(Object code) {
   if ("Flg".equals(name())) {
     return CDef.Flg.codeOf(code);
   }
   throw new IllegalStateException("Unknown definition: " + this); // basically unreachable
 }