KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > taglibs > standard > lang > jstl > BeanInfoProperty


1 /*
2  * Copyright 1999-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.taglibs.standard.lang.jstl;
18
19 import java.beans.PropertyDescriptor JavaDoc;
20 import java.lang.reflect.Method JavaDoc;
21
22 /**
23  *
24  * <p>This contains the information for one property in a BeanInfo -
25  * PropertyDescriptor, read method, and write method. This class is
26  * necessary because the read/write methods in the PropertyDescriptor
27  * may not be accessible if the bean given to the introspector is not
28  * a public class. In this case, a publicly accessible version of the
29  * method must be found by searching for a public superclass/interface
30  * that declares the method (this searching is done by the
31  * BeanInfoManager).
32  *
33  * @author Nathan Abramson - Art Technology Group
34  * @version $Change: 181181 $$DateTime: 2001/06/26 09:55:09 $$Author: pierred $
35  **/

36
37 public class BeanInfoProperty
38 {
39   //-------------------------------------
40
// Properties
41
//-------------------------------------
42
// property readMethod
43

44   Method JavaDoc mReadMethod;
45   public Method JavaDoc getReadMethod ()
46   { return mReadMethod; }
47
48   //-------------------------------------
49
// property writeMethod
50

51   Method JavaDoc mWriteMethod;
52   public Method JavaDoc getWriteMethod ()
53   { return mWriteMethod; }
54
55   //-------------------------------------
56
// property propertyDescriptor
57

58   PropertyDescriptor JavaDoc mPropertyDescriptor;
59   public PropertyDescriptor JavaDoc getPropertyDescriptor ()
60   { return mPropertyDescriptor; }
61
62   //-------------------------------------
63
/**
64    *
65    * Constructor
66    **/

67   public BeanInfoProperty (Method JavaDoc pReadMethod,
68                Method JavaDoc pWriteMethod,
69                PropertyDescriptor JavaDoc pPropertyDescriptor)
70   {
71     mReadMethod = pReadMethod;
72     mWriteMethod = pWriteMethod;
73     mPropertyDescriptor = pPropertyDescriptor;
74   }
75
76   //-------------------------------------
77
}
78
Popular Tags