Determines all the keys from the map "names" in the text and replaces them with their values
( String text, Map<String,String> map )
| 107 | * with their values |
| 108 | */ |
| 109 | public String changeKeyValue ( String text, Map<String,String> map ){ |
| 110 | |
| 111 | for (Map.Entry<String, String> entry : map.entrySet()) { |
| 112 | String key = entry.getKey(); |
| 113 | String value = entry.getValue(); |
| 114 | text = text.replaceAll(key,value); |
| 115 | } |
| 116 | return text; |
| 117 | } // changeKeyValue ( String text ) |
| 118 | |
| 119 | /** determines the package of the main class |
| 120 | */ |
no test coverage detected