01: /* $Id: SimpleTestBean.java 471661 2006-11-06 08:09:25Z skitching $
02: *
03: * Licensed to the Apache Software Foundation (ASF) under one or more
04: * contributor license agreements. See the NOTICE file distributed with
05: * this work for additional information regarding copyright ownership.
06: * The ASF licenses this file to You under the Apache License, Version 2.0
07: * (the "License"); you may not use this file except in compliance with
08: * the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: package org.apache.commons.digester;
20:
21: /**
22: * <p> As it's name suggests just a simple bean used for testing.
23: */
24: public class SimpleTestBean {
25:
26: private String alpha;
27:
28: private String beta;
29:
30: private String gamma;
31:
32: private String delta;
33:
34: public String getAlpha() {
35: return alpha;
36: }
37:
38: public void setAlpha(String alpha) {
39: this .alpha = alpha;
40: }
41:
42: public String getBeta() {
43: return beta;
44: }
45:
46: public void setBeta(String beta) {
47: this .beta = beta;
48: }
49:
50: public String getGamma() {
51: return gamma;
52: }
53:
54: public void setGamma(String gamma) {
55: this .gamma = gamma;
56: }
57:
58: public String getDeltaValue() { // Retrieves "write only" value
59: return delta;
60: }
61:
62: public void setDelta(String delta) { // "delta" is a write-only property
63: this .delta = delta;
64: }
65:
66: public void setAlphaBeta(String alpha, String beta) {
67: setAlpha(alpha);
68: setBeta(beta);
69: }
70:
71: public String toString() {
72: StringBuffer sb = new StringBuffer("[SimpleTestBean]");
73: sb.append(" alpha=");
74: sb.append(alpha);
75: sb.append(" beta=");
76: sb.append(beta);
77: sb.append(" gamma=");
78: sb.append(gamma);
79: sb.append(" delta=");
80: sb.append(delta);
81:
82: return sb.toString();
83: }
84: }
|