1 16 package org.apache.cocoon.forms.samples.bindings; 17 18 23 public class ValuesBean { 24 private String simple = "Simple"; 25 private String writeOnly = "Write-Only"; 26 private String readOnly = "Read-Only"; 27 private String date = "19700506"; 28 private String diffIn = "Diff-in/out"; 29 private String diffOut; 30 private String onUpdate = "On Update"; 31 private int updateCount = 0; 32 private boolean bool = true; 33 private String other = "This field is not involved in the form."; 34 35 public String toString() { 36 return "ValuesBean[\n" 37 +"\tsimple=" +simple +"\n" 38 +"\treadonly=" +readOnly +"\n" 39 +"\twriteonly=" +writeOnly +"\n" 40 +"\tdiff-in=" +diffIn +"\n" 41 +"\tdiff-out=" +diffOut +"\n" 42 +"\tdate=" +date +"\n" 43 +"\tbool=" +bool +"\n" 44 +"\tonupdate=" + onUpdate +"\n" 45 +"\tupdateCount=" + updateCount +"\n" 46 +"\tother=" + other +"\n"; 47 } 48 49 52 public boolean isBool() { 53 return bool; 54 } 55 56 59 public void setBool(boolean bool) { 60 this.bool = bool; 61 } 62 63 66 public String getDate() { 67 return date; 68 } 69 70 73 public void setDate(String date) { 74 this.date = date; 75 } 76 77 80 public String getDiffIn() { 81 return diffIn; 82 } 83 84 87 public void setDiffIn(String diffIn) { 88 this.diffIn = diffIn; 89 } 90 91 94 public String getDiffOut() { 95 return diffOut; 96 } 97 98 101 public void setDiffOut(String diffOut) { 102 this.diffOut = diffOut; 103 } 104 105 108 public String getOnUpdate() { 109 return onUpdate; 110 } 111 112 115 public void setOnUpdate(String onUpdate) { 116 this.onUpdate = onUpdate; 117 } 118 119 122 public String getOther() { 123 return other; 124 } 125 126 129 public void setOther(String other) { 130 this.other = other; 131 } 132 133 136 public String getReadOnly() { 137 return readOnly; 138 } 139 140 143 public void setReadOnly(String readOnly) { 144 this.readOnly = readOnly; 145 } 146 147 150 public String getSimple() { 151 return simple; 152 } 153 154 157 public void setSimple(String simple) { 158 this.simple = simple; 159 } 160 161 164 public int getUpdateCount() { 165 return updateCount; 166 } 167 168 171 public void setUpdateCount(int updateCount) { 172 this.updateCount = updateCount; 173 } 174 175 178 public String getWriteOnly() { 179 return writeOnly; 180 } 181 182 185 public void setWriteOnly(String writeOnly) { 186 this.writeOnly = writeOnly; 187 } 188 } 189 | Popular Tags |