Esempio n. 1
0
  static {
    for (DataTypeEnum next : DataTypeEnum.values()) {
      CODE_TO_ENUM.put(next.getCode(), next);

      if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
        SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, DataTypeEnum>());
      }
      SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
    }
  }
Esempio n. 2
0
 @Override
 public String toSystemString(DataTypeEnum theEnum) {
   return theEnum.getSystem();
 }
Esempio n. 3
0
 @Override
 public String toCodeString(DataTypeEnum theEnum) {
   return theEnum.getCode();
 }