| 1 | |
package org.kuali.spring.util; |
| 2 | |
|
| 3 | 27 | public class Placeholder { |
| 4 | |
int startIndex; |
| 5 | |
int endIndex; |
| 6 | |
String value; |
| 7 | |
PlaceholderString placeholderString; |
| 8 | |
|
| 9 | |
public int getStartIndex() { |
| 10 | 17 | return startIndex; |
| 11 | |
} |
| 12 | |
|
| 13 | |
public void setStartIndex(int beginIndex) { |
| 14 | 27 | this.startIndex = beginIndex; |
| 15 | 27 | } |
| 16 | |
|
| 17 | |
public int getEndIndex() { |
| 18 | 44 | return endIndex; |
| 19 | |
} |
| 20 | |
|
| 21 | |
public void setEndIndex(int endIndex) { |
| 22 | 27 | this.endIndex = endIndex; |
| 23 | 27 | } |
| 24 | |
|
| 25 | |
public String getValue() { |
| 26 | 34 | return value; |
| 27 | |
} |
| 28 | |
|
| 29 | |
public void setValue(String value) { |
| 30 | 17 | this.value = value; |
| 31 | 17 | } |
| 32 | |
|
| 33 | |
public PlaceholderString getPlaceholderString() { |
| 34 | 41 | return placeholderString; |
| 35 | |
} |
| 36 | |
|
| 37 | |
public void setPlaceholderString(PlaceholderString placeholderString) { |
| 38 | 27 | this.placeholderString = placeholderString; |
| 39 | 27 | } |
| 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 | |
} |