2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shale.usecases.validator;
19
20 import java.util.Date;
21
22 import org.apache.commons.logging.Log;
23 import org.apache.commons.logging.LogFactory;
24 import org.apache.shale.view.AbstractViewController;
25
26 /***
27 * <p>Backing bean for the validator use case.</p>
28 *
29 * $Id: Test.java 464373 2006-10-16 04:21:54Z rahul $
30 */
31 public class Test extends AbstractViewController {
32
33
34
35
36
37 /***
38 * <p>The <code>Log</code> instance for this class.</p>
39 */
40 private static final Log log = LogFactory.getLog(Test.class);
41
42
43
44
45 /***
46 * <p>The amount.</p>
47 */
48 private double amount = 0;
49
50
51 /***
52 * <p>Return the amount.</p>
53 */
54 public double getAmount() {
55
56 return amount;
57
58 }
59
60 /***
61 * <p>Set the amount.</p>
62 */
63 public void setAmount(double newValue) {
64
65 amount = newValue;
66
67 }
68
69 /***
70 * <p>The credit card.</p>
71 */
72 private String creditCard;
73
74
75 /***
76 * <p>Return the creditCard.</p>
77 */
78 public String getCreditCard() {
79
80 return creditCard;
81
82 }
83
84 /***
85 * <p>Set the creditCard.</p>
86 */
87 public void setCreditCard(String newValue) {
88
89 creditCard = newValue;
90
91 }
92
93 /***
94 * <p>The expiration date.</p>
95 */
96 private Date expirationDate;
97
98
99 /***
100 * <p>Return the expirationDate.</p>
101 */
102 public Date getExpirationDate() {
103
104 return expirationDate;
105
106 }
107
108 /***
109 * <p>Set the expirationDate.</p>
110 */
111 public void setExpirationDate(Date newValue) {
112
113 expirationDate = newValue;
114
115 }
116
117
118 private Procedure[] procedures = null;
119 public Procedure[] getProcedures() {
120 if (procedures == null) {
121 procedures = new Procedure[3];
122 procedures[0] = new Procedure("30930", "Fracture Turbinate", 114, 239);
123 procedures[1] = new Procedure("87880", "(Rapid) Strep Test", 45, 100);
124 procedures[2] = new Procedure("93042", "Rhythm Electrocardiography", 500, 750);
125 }
126
127 return procedures;
128 }
129
130
131
132 }