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