001    /*
002     * Copyright 1999-2001,2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */ 
016    
017    package org.apache.commons.workflow.web;
018    
019    
020    
021    
022    /**
023     * <p>JavaBean used in the demonstration web application.</p>
024     *
025     * @version $Revision: 155475 $ $Date: 2005-02-26 13:31:11 +0000 (Sat, 26 Feb 2005) $
026     * @author Craig R. McClanahan
027     */
028    
029    public class DemoBean {
030    
031    
032        // ------------------------------------------------------------- Properties
033    
034    
035        private String firstName = "";
036    
037        public String getFirstName() {
038            return (this.firstName);
039        }
040    
041        public void setFirstName(String firstName) {
042            this.firstName = firstName;
043        }
044    
045    
046        private String lastName = "";
047    
048        public String getLastName() {
049            return (this.lastName);
050        }
051    
052        public void setLastName(String lastName) {
053            this.lastName = lastName;
054        }
055    
056    
057        private String favoriteCar = "";
058    
059        public String getFavoriteCar() {
060            return (this.favoriteCar);
061        }
062    
063        public void setFavoriteCar(String favoriteCar) {
064            this.favoriteCar = favoriteCar;
065        }
066    
067    
068        private String favoriteCity = "";
069    
070        public String getFavoriteCity() {
071            return (this.favoriteCity);
072        }
073    
074        public void setFavoriteCity(String favoriteCity) {
075            this.favoriteCity = favoriteCity;
076        }
077    
078    
079        private String favoriteSport = "";
080    
081        public String getFavoriteSport() {
082            return (this.favoriteSport);
083        }
084    
085        public void setFavoriteSport(String favoriteSport) {
086            this.favoriteSport = favoriteSport;
087        }
088    
089    
090        private String favoriteTeam = "";
091    
092        public String getFavoriteTeam() {
093            return (this.favoriteTeam);
094        }
095    
096        public void setFavoriteTeam(String favoriteTeam) {
097            this.favoriteTeam = favoriteTeam;
098        }
099    
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    }