KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > config > element > ManagedProperty


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 org.apache.myfaces.config.element;
17
18 import javax.faces.context.FacesContext;
19
20 import org.apache.myfaces.config.element.ListEntries;
21
22
23 /**
24  * @author Manfred Geiler (latest modification by $Author: matze $)
25  * @author Anton Koinov
26
27  * @version $Revision: 1.3 $ $Date: 2004/10/13 11:50:59 $
28  * $Log: ManagedProperty.java,v $
29  * Revision 1.3 2004/10/13 11:50:59 matze
30  * renamed packages to org.apache
31  *
32  * Revision 1.2 2004/10/05 22:34:21 dave0000
33  * bug 1021656 with related improvements
34  *
35  * Revision 1.1 2004/07/07 00:25:04 o_rossmueller
36  * tidy up config/confignew package (moved confignew classes to package config)
37  *
38  * Revision 1.3 2004/07/01 22:05:04 mwessendorf
39  * ASF switch
40  *
41  * Revision 1.2 2004/06/16 23:02:22 o_rossmueller
42  * merged confignew_branch
43  *
44  * Revision 1.1.2.1 2004/06/13 15:59:06 o_rossmueller
45  * started integration of new config mechanism:
46  * - factories
47  * - components
48  * - render kits
49  * - managed beans + managed properties (no list/map initialization)
50  *
51  * Revision 1.1 2004/05/17 14:28:26 manolito
52  * new configuration concept
53  *
54  */

55 public interface ManagedProperty
56 {
57     // <!ELEMENT managed-property (description*, display-name*, icon*, property-name, property-class?, (map-entries|null-value|value|list-entries))>
58

59     public static final int TYPE_UNKNOWN = 0;
60     public static final int TYPE_MAP = 1;
61     public static final int TYPE_NULL = 2;
62     public static final int TYPE_VALUE = 3;
63     public static final int TYPE_LIST = 4;
64
65     public String JavaDoc getPropertyName();
66     public String JavaDoc getPropertyClass();
67
68     public int getType();
69     public MapEntries getMapEntries();
70     public ListEntries getListEntries();
71     public Object JavaDoc getRuntimeValue(FacesContext facesContext);
72 }
73
Popular Tags