01: package argparser;
02:
03: /**
04: * Wrapper class which ``holds'' a String reference,
05: * enabling methods to return String references through
06: * arguments.
07: */
08: public class StringHolder implements java.io.Serializable {
09: /**
10: * Value of the String reference, set and examined
11: * by the application as needed.
12: */
13: public String value;
14:
15: /**
16: * Constructs a new <code>StringHolder</code> with an
17: * initial value of <code>null</code>.
18: */
19: public StringHolder() {
20: value = null;
21: }
22:
23: /**
24: * Constructs a new <code>StringHolder</code> with a
25: * specific initial value.
26: *
27: * @param s Initial String reference.
28: */
29: public StringHolder(String s) {
30: value = s;
31: }
32: }
|