View Javadoc

1   /*
2    * Copyright 1999-2001,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */ 
16  
17  package org.apache.commons.workflow.web;
18  
19  
20  
21  
22  /**
23   * <p>JavaBean used in the demonstration web application.</p>
24   *
25   * @version $Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
26   * @author Craig R. McClanahan
27   */
28  
29  public class DemoBean {
30  
31  
32      // ------------------------------------------------------------- Properties
33  
34  
35      private String firstName = "";
36  
37      public String getFirstName() {
38          return (this.firstName);
39      }
40  
41      public void setFirstName(String firstName) {
42          this.firstName = firstName;
43      }
44  
45  
46      private String lastName = "";
47  
48      public String getLastName() {
49          return (this.lastName);
50      }
51  
52      public void setLastName(String lastName) {
53          this.lastName = lastName;
54      }
55  
56  
57      private String favoriteCar = "";
58  
59      public String getFavoriteCar() {
60          return (this.favoriteCar);
61      }
62  
63      public void setFavoriteCar(String favoriteCar) {
64          this.favoriteCar = favoriteCar;
65      }
66  
67  
68      private String favoriteCity = "";
69  
70      public String getFavoriteCity() {
71          return (this.favoriteCity);
72      }
73  
74      public void setFavoriteCity(String favoriteCity) {
75          this.favoriteCity = favoriteCity;
76      }
77  
78  
79      private String favoriteSport = "";
80  
81      public String getFavoriteSport() {
82          return (this.favoriteSport);
83      }
84  
85      public void setFavoriteSport(String favoriteSport) {
86          this.favoriteSport = favoriteSport;
87      }
88  
89  
90      private String favoriteTeam = "";
91  
92      public String getFavoriteTeam() {
93          return (this.favoriteTeam);
94      }
95  
96      public void setFavoriteTeam(String favoriteTeam) {
97          this.favoriteTeam = favoriteTeam;
98      }
99  
100 
101     public void reset() {
102         this.firstName = "";
103         this.lastName = "";
104         this.favoriteCar = "";
105         this.favoriteCity = "";
106         this.favoriteSport = "";
107         this.favoriteTeam = "";
108     }
109 
110 
111 }