1 | |
package org.kuali.spring.util; |
2 | |
|
3 | |
import java.util.List; |
4 | |
|
5 | |
public class PlaceholderString { |
6 | |
|
7 | |
String text; |
8 | |
String resolvedText; |
9 | |
List<Placeholder> placeholders; |
10 | |
|
11 | |
public PlaceholderString() { |
12 | 0 | this(null); |
13 | 0 | } |
14 | |
|
15 | |
public PlaceholderString(String text) { |
16 | 319 | super(); |
17 | 319 | this.text = text; |
18 | 319 | } |
19 | |
|
20 | |
public String getText() { |
21 | 778 | return text; |
22 | |
} |
23 | |
|
24 | |
public void setText(String text) { |
25 | 0 | this.text = text; |
26 | 0 | } |
27 | |
|
28 | |
public String getResolvedText() { |
29 | 300 | return resolvedText; |
30 | |
} |
31 | |
|
32 | |
public void setResolvedText(String resolvedText) { |
33 | 300 | this.resolvedText = resolvedText; |
34 | 300 | } |
35 | |
|
36 | |
public List<Placeholder> getPlaceholders() { |
37 | 316 | return placeholders; |
38 | |
} |
39 | |
|
40 | |
public void setPlaceholders(List<Placeholder> placeholders) { |
41 | 331 | this.placeholders = placeholders; |
42 | 331 | } |
43 | |
|
44 | |
@Override |
45 | |
public String toString() { |
46 | 0 | StringBuilder sb = new StringBuilder(); |
47 | 0 | sb.append("Text: [" + getText() + "]"); |
48 | 0 | sb.append(" Resolved Text: [" + getResolvedText() + "]"); |
49 | 0 | sb.append(" Placeholders: ["); |
50 | 0 | if (getPlaceholders() != null) { |
51 | 0 | for (Placeholder placeholder : getPlaceholders()) { |
52 | 0 | sb.append(placeholder.toString()); |
53 | |
} |
54 | |
} |
55 | 0 | sb.append("]"); |
56 | 0 | return sb.toString(); |
57 | |
} |
58 | |
} |