KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > faces > el > PropertyResolver


1 /*
2  * Copyright 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 package javax.faces.el;
17
18 /**
19  * @author Thomas Spiegl (latest modification by $Author: mwessendorf $)
20  * @version $Revision: 1.5 $ $Date: 2004/07/01 22:00:51 $
21  */

22 public abstract class PropertyResolver
23 {
24
25     // FIELDS
26

27     // CONSTRUCTORS
28
public PropertyResolver()
29     {
30     }
31
32     // METHODS
33
public abstract Class JavaDoc getType(Object JavaDoc base, int index)
34         throws EvaluationException, PropertyNotFoundException;
35
36
37     public abstract Class JavaDoc getType(Object JavaDoc base, java.lang.Object JavaDoc property)
38         throws EvaluationException, PropertyNotFoundException;
39
40     public abstract Object JavaDoc getValue(Object JavaDoc base, int index)
41         throws EvaluationException, PropertyNotFoundException;
42
43     public abstract Object JavaDoc getValue(Object JavaDoc base, java.lang.Object JavaDoc property)
44         throws EvaluationException, PropertyNotFoundException;
45
46     public abstract boolean isReadOnly(Object JavaDoc base, int index)
47         throws EvaluationException, PropertyNotFoundException;
48
49     public abstract boolean isReadOnly(Object JavaDoc base, java.lang.Object JavaDoc property)
50         throws EvaluationException, PropertyNotFoundException;
51
52     public abstract void setValue(Object JavaDoc base, int index, java.lang.Object JavaDoc value)
53         throws EvaluationException, PropertyNotFoundException;
54
55     public abstract void setValue(Object JavaDoc base, Object JavaDoc property, java.lang.Object JavaDoc value)
56         throws EvaluationException, PropertyNotFoundException;
57
58 }
59
Popular Tags