001    // Copyright 2004, 2005 The Apache Software Foundation
002    //
003    // Licensed under the Apache License, Version 2.0 (the "License");
004    // you may not use this file except in compliance with the License.
005    // You may obtain a copy of the License at
006    //
007    //     http://www.apache.org/licenses/LICENSE-2.0
008    //
009    // Unless required by applicable law or agreed to in writing, software
010    // distributed under the License is distributed on an "AS IS" BASIS,
011    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012    // See the License for the specific language governing permissions and
013    // limitations under the License.
014    package org.apache.tapestry.form;
015    
016    
017    /**
018     * Used by the {@link BeanPropertySelectionModelTest} to test
019     * listing/selecting bean properties.
020     *
021     * @author jkuhnert
022     */
023    public class SimpleBean
024    {
025    
026        protected int _id;
027        protected String _name;
028        protected String _description;
029        
030        /** Default constructor. */
031        public SimpleBean() { }
032        
033        /**
034         * Creates a new instance with default values.
035         * @param id
036         * @param name
037         * @param description
038         */
039        public SimpleBean(int id, String name, String description)
040        {
041            _id = id;
042            _name = name;
043            _description = description;
044        }
045        
046        /**
047         * @return Returns the description.
048         */
049        public String getDescription()
050        {
051            return _description;
052        }
053        
054        /**
055         * @return Returns the id.
056         */
057        public int getId()
058        {
059            return _id;
060        }
061        
062        /**
063         * @return Returns the name.
064         */
065        public String getName()
066        {
067            return _name;
068        }
069    }