01: /*
02: * Copyright 2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: import javax.faces.el.ValueBinding;
20:
21: import org.apache.myfaces.config.element.ListEntries;
22:
23: /**
24: * @author Manfred Geiler (latest modification by $Author: oros $)
25: * @author Anton Koinov
26:
27: * @version $Revision: 279999 $ $Date: 2005-09-10 14:37:54 +0200 (Sa, 10 Sep 2005) $
28: */
29: public interface ManagedProperty {
30: // <!ELEMENT managed-property (description*, display-name*, icon*, property-name, property-class?, (map-entries|null-value|value|list-entries))>
31:
32: public static final int TYPE_UNKNOWN = 0;
33: public static final int TYPE_MAP = 1;
34: public static final int TYPE_NULL = 2;
35: public static final int TYPE_VALUE = 3;
36: public static final int TYPE_LIST = 4;
37:
38: public String getPropertyName();
39:
40: public String getPropertyClass();
41:
42: public int getType();
43:
44: public MapEntries getMapEntries();
45:
46: public ListEntries getListEntries();
47:
48: public Object getRuntimeValue(FacesContext facesContext);
49:
50: public boolean isValueReference();
51:
52: public ValueBinding getValueBinding(FacesContext facesContext);
53: }
|