This ELResolver will handle the resolution of attrs when processing a composite component
instance.
| Modifier and Type | Class and Description |
|---|---|
| private static class | CompositeComponentAttributesELResolver.
Simple Map implementation to evaluate any |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | COMPOSITE_COMPONENT_ATTRIBUTES_NAME
Implicit object related only to the cc implicitObject. |
| private static final String | COMPOSITE_COMPONENT_PARENT_NAME
Implicit object related only to the cc implicit object and refers to the composite component parent (if any). |
| private static final String | EVAL_MAP_KEY
Key to which we store the mappings between composite component instances and their ExpressionEvalMap. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | getCommonPropertyType(ELContext
The context of this evaluation. context, Object The base object to return the most general property type for, or base)null to enumerate the set
of top-level variables that this resolver can evaluate.Implements abstract jakarta.
|
| public Map | Returns: anExpressionEvalMap for the specified componentthe owning c, FacesContext UIComponentthe ctx)FacesContext for the current request
Creates (if necessary) and caches an |
| public Class | getType(ELContext
The context of this evaluation. context, Object The base object whose property value is to be analyzed, or base, Object null to analyze a top-level
variable.The property or variable to return the acceptable type for. property)Implements abstract jakarta.
Readonly, so return |
| public Object | getValue(ELContext
The context of this evaluation. context, Object The base object whose property value is to be returned, or base, Object null to resolve a top-level
variable.The property or variable to be resolved. property)Implements abstract jakarta.
If |
| public boolean | isReadOnly(ELContext
The context of this evaluation. context, Object The base object whose property value is to be analyzed, or base, Object null to analyze a top-level
variable.The property or variable to return the read-only status for. property)Implements abstract jakarta.
Readonly, so return |
| public void | setValue(ELContext
The context of this evaluation. context, Object The base object whose property value is to be set, or base, Object null to set a top-level variable.The property or variable to be set. property, Object The value to set the property or variable to. value)Implements abstract jakarta. This is a no-op. |
| COMPOSITE_COMPONENT_ATTRIBUTES_NAME | back to summary |
|---|---|
| private static final String COMPOSITE_COMPONENT_ATTRIBUTES_NAME Implicit object related only to the cc implicitObject. | |
| COMPOSITE_COMPONENT_PARENT_NAME | back to summary |
|---|---|
| private static final String COMPOSITE_COMPONENT_PARENT_NAME Implicit object related only to the cc implicit object and refers to the composite component parent (if any). | |
| EVAL_MAP_KEY | back to summary |
|---|---|
| private static final String EVAL_MAP_KEY Key to which we store the mappings between composite component instances and their ExpressionEvalMap. | |
| CompositeComponentAttributesELResolver | back to summary |
|---|---|
| public CompositeComponentAttributesELResolver() | |
| getCommonPropertyType | back to summary |
|---|---|
| public Class Implements abstract jakarta.
| |
| getEvalMapFor | back to summary |
|---|---|
| public Map
Creates (if necessary) and caches an
| |
| getType | back to summary |
|---|---|
| public Class Implements abstract jakarta.
Readonly, so return
| |
| getValue | back to summary |
|---|---|
| public Object getValue(ELContext context, Object base, Object property) Implements abstract jakarta.
If
The
If
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(ELContext context, Object base, Object property) Implements abstract jakarta.
Readonly, so return
| |
| setValue | back to summary |
|---|---|
| public void setValue(ELContext context, Object base, Object property, Object value) Implements abstract jakarta. This is a no-op.
| |
ValueExpression stored directly within the provided attributes
map.
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final UIComponent | |
| private FacesContext | |
| private PropertyDescriptor[] | |
| private Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. Returns |
| public Set | entrySet()
Implements java. Returns a |
| public Object | get(Object
the key whose associated value is to be returned key)Implements java. Returns the value to which the specified key is mapped,
or |
| private Object | |
| public ValueExpression | getExpression(String
that attribute name which may be associated with a name)ValueExpressionImplements jakarta.
|
| public boolean | |
| public Set | |
| public Object | put(String
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<? extends String, ?>
mappings to be stored in this map t)Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public Object | remove(Object
key whose mapping is to be removed from the map key)Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public int | |
| public void | |
| public Collection | values()
Implements java. Returns a |
| attributesMap | back to summary |
|---|---|
| private final Map<String, Object> attributesMap | |
| cc | back to summary |
|---|---|
| private final UIComponent cc | |
| ctx | back to summary |
|---|---|
| private FacesContext ctx | |
| declaredAttributes | back to summary |
|---|---|
| private PropertyDescriptor[] declaredAttributes | |
| declaredDefaultValues | back to summary |
|---|---|
| private Map<Object, Object> declaredDefaultValues | |
| ExpressionEvalMap | back to summary |
|---|---|
| pack-priv ExpressionEvalMap(FacesContext ctx, UIComponent cc) | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| get | back to summary |
|---|---|
| public Object get(Object key) Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| getDeclaredDefaultValue | back to summary |
|---|---|
| private Object getDeclaredDefaultValue(Object key) | |
| getExpression | back to summary |
|---|---|
| public ValueExpression getExpression(String name) Implements jakarta.
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a | |
| put | back to summary |
|---|---|
| public Object put(String key, Object value) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends String, ?> t) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling | |
| remove | back to summary |
|---|---|
| public Object remove(Object key) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| updateFacesContext | back to summary |
|---|---|
| public void updateFacesContext(FacesContext ctx) | |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
| |