01: /*
02: * Created on 20-May-2006
03: */
04: package uk.org.ponder.stringutil;
05:
06: /** Class holding a single String value, accessible in practically every
07: * possible way.
08: * @author Antranig Basman (amb26@ponder.org.uk)
09: *
10: */
11:
12: public class StringHolder implements StringGetter {
13: private String value;
14:
15: public StringHolder() {
16: }
17:
18: public StringHolder(String value) {
19: this .value = value;
20: }
21:
22: public void setValue(String value) {
23: this .value = value;
24: }
25:
26: public String getValue() {
27: return value;
28: }
29:
30: public void append(String toappend) {
31: this .value = this .value + toappend;
32: }
33:
34: public String get() {
35: return value;
36: }
37:
38: }
|