1 | |
package org.kuali.spring.util; |
2 | |
|
3 | 52 | public class Placeholder { |
4 | |
int startIndex; |
5 | |
int endIndex; |
6 | |
String value; |
7 | |
PlaceholderString placeholderString; |
8 | |
|
9 | |
public int getStartIndex() { |
10 | 34 | return startIndex; |
11 | |
} |
12 | |
|
13 | |
public void setStartIndex(int beginIndex) { |
14 | 52 | this.startIndex = beginIndex; |
15 | 52 | } |
16 | |
|
17 | |
public int getEndIndex() { |
18 | 86 | return endIndex; |
19 | |
} |
20 | |
|
21 | |
public void setEndIndex(int endIndex) { |
22 | 52 | this.endIndex = endIndex; |
23 | 52 | } |
24 | |
|
25 | |
public String getValue() { |
26 | 68 | return value; |
27 | |
} |
28 | |
|
29 | |
public void setValue(String value) { |
30 | 34 | this.value = value; |
31 | 34 | } |
32 | |
|
33 | |
public PlaceholderString getPlaceholderString() { |
34 | 75 | return placeholderString; |
35 | |
} |
36 | |
|
37 | |
public void setPlaceholderString(PlaceholderString placeholderString) { |
38 | 52 | this.placeholderString = placeholderString; |
39 | 52 | } |
40 | |
|
41 | |
@Override |
42 | |
public String toString() { |
43 | 0 | StringBuilder sb = new StringBuilder(); |
44 | 0 | sb.append("[" + placeholderString.getText() + "]"); |
45 | 0 | sb.append("=[" + getValue() + "]"); |
46 | 0 | sb.append(" PlaceholderString: ["); |
47 | 0 | sb.append(getPlaceholderString().toString()); |
48 | 0 | sb.append("]"); |
49 | 0 | return sb.toString(); |
50 | |
} |
51 | |
|
52 | |
} |