Last change
on this file since 9616 was 7937, checked in by bastiK, 9 years ago |
add subversion property svn:eol=native
|
-
Property svn:eol-style
set to
native
|
File size:
621 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.tools.template_engine;
|
---|
3 |
|
---|
4 | public class StaticText implements TemplateEntry {
|
---|
5 |
|
---|
6 | private final String staticText;
|
---|
7 |
|
---|
8 | public StaticText(String staticText) {
|
---|
9 | this.staticText = staticText;
|
---|
10 | }
|
---|
11 |
|
---|
12 | @Override
|
---|
13 | public void appendText(StringBuilder result, TemplateEngineDataProvider dataProvider) {
|
---|
14 | result.append(staticText);
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public boolean isValid(TemplateEngineDataProvider dataProvider) {
|
---|
19 | return true;
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public String toString() {
|
---|
24 | return staticText;
|
---|
25 | }
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.