250 * |
252 * |
251 * @param key the key to look for in the configuration file |
253 * @param key the key to look for in the configuration file |
252 * @return a content tree for the text |
254 * @return a content tree for the text |
253 */ |
255 */ |
254 public Content getResource(String key) { |
256 public Content getResource(String key) { |
255 return new StringContent(configuration.getText(key)); |
257 return configuration.getResource(key); |
256 } |
258 } |
257 |
259 |
258 /** |
260 /** |
259 * Get the configuration string as a content. |
261 * Get the configuration string as a content. |
260 * |
262 * |
261 * @param key the key to look for in the configuration file |
263 * @param key the key to look for in the configuration file |
262 * @param a1 string argument added to configuration text |
264 * @param o string or content argument added to configuration text |
263 * @return a content tree for the text |
265 * @return a content tree for the text |
264 */ |
266 */ |
265 public Content getResource(String key, String a1) { |
267 public Content getResource(String key, Object o) { |
266 return new RawHtml(configuration.getText(key, a1)); |
268 return configuration.getResource(key, o); |
267 } |
269 } |
268 |
270 |
269 /** |
271 /** |
270 * Get the configuration string as a content. |
272 * Get the configuration string as a content. |
271 * |
273 * |
272 * @param key the key to look for in the configuration file |
274 * @param key the key to look for in the configuration file |
273 * @param a1 string argument added to configuration text |
275 * @param o1 string or content argument added to configuration text |
274 * @param a2 string argument added to configuration text |
276 * @param o2 string or content argument added to configuration text |
275 * @return a content tree for the text |
277 * @return a content tree for the text |
276 */ |
278 */ |
277 public Content getResource(String key, String a1, String a2) { |
279 public Content getResource(String key, Object o0, Object o1) { |
278 return new RawHtml(configuration.getText(key, a1, a2)); |
280 return configuration.getResource(key, o0, o1); |
279 } |
281 } |
280 |
282 |
281 /** |
283 /** |
282 * Returns an HtmlTree for the SCRIPT tag. |
284 * Returns an HtmlTree for the SCRIPT tag. |
283 * |
285 * |