Source code: com/sun/facelets/tag/MetadataTarget.java
1 /**
2 * Licensed under the Common Development and Distribution License,
3 * you may not use this file except in compliance with the License.
4 * You may obtain a copy of the License at
5 *
6 * http://www.sun.com/cddl/
7 *
8 * Unless required by applicable law or agreed to in writing, software
9 * distributed under the License is distributed on an "AS IS" BASIS,
10 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
11 * implied. See the License for the specific language governing
12 * permissions and limitations under the License.
13 */
14
15 package com.sun.facelets.tag;
16
17 import java.beans.PropertyDescriptor;
18 import java.lang.reflect.Method;
19
20 /**
21 * Information used with MetaRule for determining how and what Metadata should
22 * be wired.
23 *
24 * @see com.sun.facelets.tag.MetaRule
25 * @see com.sun.facelets.tag.Metadata
26 * @author Jacob Hookom
27 * @version $Id: MetadataTarget.java,v 1.2 2005/08/24 04:38:47 jhook Exp $
28 */
29 public abstract class MetadataTarget {
30
31 /**
32 * @param name
33 * @return
34 */
35 public abstract PropertyDescriptor getProperty(String name);
36
37 /**
38 * @param type
39 * @return
40 */
41 public abstract boolean isTargetInstanceOf(Class type);
42
43 /**
44 * @return
45 */
46 public abstract Class getTargetClass();
47
48 /**
49 * @param name
50 * @return
51 */
52 public abstract Class getPropertyType(String name);
53
54 /**
55 * @param name
56 * @return
57 */
58 public abstract Method getWriteMethod(String name);
59
60 /**
61 * @param name
62 * @return
63 */
64 public abstract Method getReadMethod(String name);
65
66 }