1   /*
2    * Copyright 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.betwixt.introspection;
18  
19  
20  /*** <p>An example of a bean that has a BeanInfo for use with introspection.</p>
21    *
22    * <p>
23    * Three different pseudo-properties:
24    * <ul>
25    * <li><strong>Alpha</strong> is a standard property.
26    * <li><strong>Beta</strong> follows standard naming conventions but should be ignored. 
27    * <li><strong>Gamma</strong> doesn't follow standard naming conventions
28    * </ul>
29    * </p>
30    *
31    * @author Robert Burrell Donkin
32    * @version $Revision: 1.5 $
33    */
34  public class BeanWithBeanInfoBean {
35      
36      private String alpha;
37      private String beta;
38      private String gamma;
39      
40      public BeanWithBeanInfoBean() {}
41      
42      public BeanWithBeanInfoBean(String alpha, String beta, String gamma) {
43          setAlpha(alpha);
44          setBeta(beta);
45          gammaSetter(gamma);
46      }
47      
48      public String getAlpha() {
49          return alpha;
50      }
51      
52      public void setAlpha(String alpha) {
53          this.alpha = alpha;
54      } 
55      
56      public String getBeta() {
57          return beta;
58      }	
59      
60      public void setBeta(String beta) {
61          this.beta = beta;
62      }
63      
64      public String gammaGetter() {
65          return gamma;
66      }
67      
68      public void gammaSetter(String gamma) {
69          this.gamma = gamma;
70      }	
71  }
72