MCPcopy Create free account
hub / github.com/GateNLP/gate-core / changeKeyValue

Method changeKeyValue

src/main/java/gate/creole/BootStrap.java:109–117  ·  view source on GitHub ↗

Determines all the keys from the map "names" in the text and replaces them with their values

( String text, Map<String,String> map )

Source from the content-addressed store, hash-verified

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 */

Callers 1

createResourceMethod · 0.95

Calls 3

getKeyMethod · 0.65
getValueMethod · 0.65
entrySetMethod · 0.45

Tested by

no test coverage detected