@Test public void normalize_CHANGE_ALL_FORM() { String judgmentFormName = "orzeczenie"; String normalizedName = scJudgmentFormNameNormalizer.normalize(judgmentFormName); assertEquals("wyrok", normalizedName); }
public String normalize(String judgmentFormName) { if (StringUtils.isBlank(judgmentFormName)) { return null; } judgmentFormName = adjust(judgmentFormName); for (Map.Entry<String, String> entry : normalizedNameMap.entrySet()) { if (StringUtils.containsIgnoreCase(judgmentFormName, entry.getKey())) { return judgmentFormName.replace(entry.getKey(), entry.getValue()); } } return judgmentFormName; }
ScJudgmentFormNameNormalizer { public String normalize(String judgmentFormName) { if (StringUtils.isBlank(judgmentFormName)) { return null; } judgmentFormName = adjust(judgmentFormName); for (Map.Entry<String, String> entry : normalizedNameMap.entrySet()) { if (StringUtils.containsIgnoreCase(judgmentFormName, entry.getKey())) { return judgmentFormName.replace(entry.getKey(), entry.getValue()); } } return judgmentFormName; } }
ScJudgmentFormNameNormalizer { public String normalize(String judgmentFormName) { if (StringUtils.isBlank(judgmentFormName)) { return null; } judgmentFormName = adjust(judgmentFormName); for (Map.Entry<String, String> entry : normalizedNameMap.entrySet()) { if (StringUtils.containsIgnoreCase(judgmentFormName, entry.getKey())) { return judgmentFormName.replace(entry.getKey(), entry.getValue()); } } return judgmentFormName; }  }
ScJudgmentFormNameNormalizer { public String normalize(String judgmentFormName) { if (StringUtils.isBlank(judgmentFormName)) { return null; } judgmentFormName = adjust(judgmentFormName); for (Map.Entry<String, String> entry : normalizedNameMap.entrySet()) { if (StringUtils.containsIgnoreCase(judgmentFormName, entry.getKey())) { return judgmentFormName.replace(entry.getKey(), entry.getValue()); } } return judgmentFormName; }  String normalize(String judgmentFormName); boolean isChangedByNormalization(String judgmentFormName); void setNormalizedNameMap(Map<String, String> normalizedNameMap); }
ScJudgmentFormNameNormalizer { public String normalize(String judgmentFormName) { if (StringUtils.isBlank(judgmentFormName)) { return null; } judgmentFormName = adjust(judgmentFormName); for (Map.Entry<String, String> entry : normalizedNameMap.entrySet()) { if (StringUtils.containsIgnoreCase(judgmentFormName, entry.getKey())) { return judgmentFormName.replace(entry.getKey(), entry.getValue()); } } return judgmentFormName; }  String normalize(String judgmentFormName); boolean isChangedByNormalization(String judgmentFormName); void setNormalizedNameMap(Map<String, String> normalizedNameMap);  }