Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
BeanInfoIndexedProperty |
|
| 1.0;1 |
1 | /* | |
2 | * Licensed to the Apache Software Foundation (ASF) under one or more | |
3 | * contributor license agreements. See the NOTICE file distributed with | |
4 | * this work for additional information regarding copyright ownership. | |
5 | * The ASF licenses this file to You under the Apache License, Version 2.0 | |
6 | * (the "License"); you may not use this file except in compliance with | |
7 | * the License. You may obtain a copy of the License at | |
8 | * | |
9 | * http://www.apache.org/licenses/LICENSE-2.0 | |
10 | * | |
11 | * Unless required by applicable law or agreed to in writing, software | |
12 | * distributed under the License is distributed on an "AS IS" BASIS, | |
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 | * See the License for the specific language governing permissions and | |
15 | * limitations under the License. | |
16 | */ | |
17 | package org.apache.commons.el; | |
18 | ||
19 | import java.beans.IndexedPropertyDescriptor; | |
20 | import java.lang.reflect.Method; | |
21 | ||
22 | /** | |
23 | * | |
24 | * <p>This contains the information for one indexed property in a | |
25 | * BeanInfo - IndexedPropertyDescriptor, read method, and write | |
26 | * method. This class is necessary because the read/write methods in | |
27 | * the IndexedPropertyDescriptor may not be accessible if the bean | |
28 | * given to the introspector is not a public class. In this case, a | |
29 | * publicly accessible version of the method must be found by | |
30 | * searching for a public superclass/interface that declares the | |
31 | * method (this searching is done by the BeanInfoManager). | |
32 | * | |
33 | * @author Nathan Abramson - Art Technology Group | |
34 | * @version $Change: 181181 $$DateTime: 2001/06/26 09:55:09 $$Author: bayard $ | |
35 | **/ | |
36 | ||
37 | public class BeanInfoIndexedProperty | |
38 | { | |
39 | //------------------------------------- | |
40 | // Properties | |
41 | //------------------------------------- | |
42 | // property readMethod | |
43 | ||
44 | Method mReadMethod; | |
45 | public Method getReadMethod () | |
46 | 0 | { return mReadMethod; } |
47 | ||
48 | //------------------------------------- | |
49 | // property writeMethod | |
50 | ||
51 | Method mWriteMethod; | |
52 | public Method getWriteMethod () | |
53 | 0 | { return mWriteMethod; } |
54 | ||
55 | //------------------------------------- | |
56 | // property propertyDescriptor | |
57 | ||
58 | IndexedPropertyDescriptor mIndexedPropertyDescriptor; | |
59 | public IndexedPropertyDescriptor getIndexedPropertyDescriptor () | |
60 | 0 | { return mIndexedPropertyDescriptor; } |
61 | ||
62 | //------------------------------------- | |
63 | /** | |
64 | * | |
65 | * Constructor | |
66 | **/ | |
67 | public BeanInfoIndexedProperty | |
68 | (Method pReadMethod, | |
69 | Method pWriteMethod, | |
70 | IndexedPropertyDescriptor pIndexedPropertyDescriptor) | |
71 | 0 | { |
72 | 0 | mReadMethod = pReadMethod; |
73 | 0 | mWriteMethod = pWriteMethod; |
74 | 0 | mIndexedPropertyDescriptor = pIndexedPropertyDescriptor; |
75 | 0 | } |
76 | ||
77 | //------------------------------------- | |
78 | } |