예제 #1
0
  static {
    for (IssueSeverityEnum next : IssueSeverityEnum.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, IssueSeverityEnum>());
      }
      SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
    }
  }
예제 #2
0
 @Override
 public String toSystemString(IssueSeverityEnum theEnum) {
   return theEnum.getSystem();
 }
예제 #3
0
 @Override
 public String toCodeString(IssueSeverityEnum theEnum) {
   return theEnum.getCode();
 }