1 17 18 19 package org.apache.commons.digester; 20 21 22 25 public class SimpleTestBean { 26 27 private String alpha; 28 29 private String beta; 30 31 private String gamma; 32 33 private String delta; 34 35 public String getAlpha() { 36 return alpha; 37 } 38 39 public void setAlpha(String alpha) { 40 this.alpha = alpha; 41 } 42 43 public String getBeta() { 44 return beta; 45 } 46 47 public void setBeta(String beta) { 48 this.beta = beta; 49 } 50 51 public String getGamma() { 52 return gamma; 53 } 54 55 public void setGamma(String gamma) { 56 this.gamma = gamma; 57 } 58 59 public String getDeltaValue() { return delta; 61 } 62 63 public void setDelta(String delta) { this.delta = delta; 65 } 66 67 public void setAlphaBeta(String alpha, String beta) { 68 setAlpha(alpha); 69 setBeta(beta); 70 } 71 72 public String toString() { 73 StringBuffer sb = new StringBuffer ("[SimpleTestBean]"); 74 sb.append(" alpha="); 75 sb.append(alpha); 76 sb.append(" beta="); 77 sb.append(beta); 78 sb.append(" gamma="); 79 sb.append(gamma); 80 sb.append(" delta="); 81 sb.append(delta); 82 83 return sb.toString(); 84 } 85 } 86 | Popular Tags |