| 1024 | } |
| 1025 | |
| 1026 | public void set(String value) { |
| 1027 | if (value == null) { |
| 1028 | this.value = value; |
| 1029 | } else { |
| 1030 | StringTokenizer st = new StringTokenizer(value.trim(), |
| 1031 | ILLEGAL_VALUE_CHARS); |
| 1032 | StringBuffer sb = new StringBuffer(); |
| 1033 | // XXX this might not be particularly efficient |
| 1034 | while (st.hasMoreTokens()) { |
| 1035 | sb.append(st.nextToken()); |
| 1036 | } |
| 1037 | this.value = sb.toString(); |
| 1038 | } |
| 1039 | } |
| 1040 | |
| 1041 | public String toString() { |
| 1042 | return this.format.format(this.name, this.value, this.separator); |