2009/05/20 - Apache Shale has been retired.

For more information, please explore the Attic.

View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to you under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    *
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   *
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
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      // -------------------------------------------------------- Static Variables
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      // -------------------------------------------------------------- Properties
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 }