Changeset 17610 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2021-03-20T23:07:04+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/template_engine/TemplateEntry.java
r13003 r17610 10 10 */ 11 11 public interface TemplateEntry { 12 13 /** 14 * Execute this template by generating text for a given data provider. 15 * @param dataProvider the data provider from which information should be compiled to a string 16 * @return the generated text 17 */ 18 default String getText(TemplateEngineDataProvider dataProvider) { 19 StringBuilder sb = new StringBuilder(); 20 appendText(sb, dataProvider); 21 return sb.toString(); 22 } 23 12 24 /** 13 25 * Execute this template by generating text for a given data provider.
Note:
See TracChangeset
for help on using the changeset viewer.