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 this(null);
13 }
14
15 public PlaceholderString(String text) {
16 super();
17 this.text = text;
18 }
19
20 public String getText() {
21 return text;
22 }
23
24 public void setText(String text) {
25 this.text = text;
26 }
27
28 public String getResolvedText() {
29 return resolvedText;
30 }
31
32 public void setResolvedText(String resolvedText) {
33 this.resolvedText = resolvedText;
34 }
35
36 public List<Placeholder> getPlaceholders() {
37 return placeholders;
38 }
39
40 public void setPlaceholders(List<Placeholder> placeholders) {
41 this.placeholders = placeholders;
42 }
43
44 @Override
45 public String toString() {
46 StringBuilder sb = new StringBuilder();
47 sb.append("Text: [" + getText() + "]");
48 sb.append(" Resolved Text: [" + getResolvedText() + "]");
49 sb.append(" Placeholders: [");
50 if (getPlaceholders() != null) {
51 for (Placeholder placeholder : getPlaceholders()) {
52 sb.append(placeholder.toString());
53 }
54 }
55 sb.append("]");
56 return sb.toString();
57 }
58 }