KickJava   Java API By Example, From Geeks To Geeks.

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


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
18
19 package org.apache.taglibs.standard.lang.jstl;
20
21
22
23 import java.beans.IndexedPropertyDescriptor JavaDoc;
24
25 import java.beans.PropertyDescriptor JavaDoc;
26
27 import java.lang.reflect.Method JavaDoc;
28
29
30
31 /**
32
33  *
34
35  * <p>This contains the information for one indexed property in a
36
37  * BeanInfo - IndexedPropertyDescriptor, read method, and write
38
39  * method. This class is necessary because the read/write methods in
40
41  * the IndexedPropertyDescriptor may not be accessible if the bean
42
43  * given to the introspector is not a public class. In this case, a
44
45  * publicly accessible version of the method must be found by
46
47  * searching for a public superclass/interface that declares the
48
49  * method (this searching is done by the BeanInfoManager).
50
51  *
52
53  * @author Nathan Abramson - Art Technology Group
54
55  * @version $Change: 181181 $$DateTime: 2001/06/26 09:55:09 $$Author: pierred $
56
57  **/

58
59
60
61 public class BeanInfoIndexedProperty
62
63 {
64
65   //-------------------------------------
66

67   // Properties
68

69   //-------------------------------------
70

71   // property readMethod
72

73
74
75   Method JavaDoc mReadMethod;
76
77   public Method JavaDoc getReadMethod ()
78
79   { return mReadMethod; }
80
81
82
83   //-------------------------------------
84

85   // property writeMethod
86

87
88
89   Method JavaDoc mWriteMethod;
90
91   public Method JavaDoc getWriteMethod ()
92
93   { return mWriteMethod; }
94
95
96
97   //-------------------------------------
98

99   // property propertyDescriptor
100

101
102
103   IndexedPropertyDescriptor JavaDoc mIndexedPropertyDescriptor;
104
105   public IndexedPropertyDescriptor JavaDoc getIndexedPropertyDescriptor ()
106
107   { return mIndexedPropertyDescriptor; }
108
109
110
111   //-------------------------------------
112

113   /**
114
115    *
116
117    * Constructor
118
119    **/

120
121   public BeanInfoIndexedProperty
122
123     (Method JavaDoc pReadMethod,
124
125      Method JavaDoc pWriteMethod,
126
127      IndexedPropertyDescriptor JavaDoc pIndexedPropertyDescriptor)
128
129   {
130
131     mReadMethod = pReadMethod;
132
133     mWriteMethod = pWriteMethod;
134
135     mIndexedPropertyDescriptor = pIndexedPropertyDescriptor;
136
137   }
138
139
140
141   //-------------------------------------
142

143 }
144
145
Popular Tags