Coverage Report - org.kuali.spring.util.PlaceholderString
 
Classes in this File Line Coverage Branch Coverage Complexity
PlaceholderString
43%
10/23
0%
0/4
1.222
 
 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  1075
         super();
 17  1075
         this.text = text;
 18  1075
     }
 19  
 
 20  
     public String getText() {
 21  2222
         return text;
 22  
     }
 23  
 
 24  
     public void setText(String text) {
 25  0
         this.text = text;
 26  0
     }
 27  
 
 28  
     public String getResolvedText() {
 29  1064
         return resolvedText;
 30  
     }
 31  
 
 32  
     public void setResolvedText(String resolvedText) {
 33  1064
         this.resolvedText = resolvedText;
 34  1064
     }
 35  
 
 36  
     public List<Placeholder> getPlaceholders() {
 37  1072
         return placeholders;
 38  
     }
 39  
 
 40  
     public void setPlaceholders(List<Placeholder> placeholders) {
 41  1079
         this.placeholders = placeholders;
 42  1079
     }
 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  
 }