public class FacesResourceBundleELResolver
extends javax.el.ELResolver
ELResolver
implementation that accesses resource bundles
in the current application. See the JSF 1.2 Specification, section
5.6.1.3, for requirements implemented by this class.
Constructor and Description |
---|
FacesResourceBundleELResolver() |
Modifier and Type | Method and Description |
---|---|
protected FeatureDescriptor |
descriptor(String name,
String displayName,
String description,
boolean expert,
boolean hidden,
boolean preferred,
Object type,
boolean designTime)
Create and return a
FeatureDescriptor configured with
the specified arguments. |
Class |
getCommonPropertyType(javax.el.ELContext context,
Object base)
Return the most general type this resolver accepts for the
property argument. |
Iterator |
getFeatureDescriptors(javax.el.ELContext context,
Object base)
Return an
Iterator over the attributes that this
resolver knows how to deal with. |
Class |
getType(javax.el.ELContext context,
Object base,
Object property)
Return the Java type of the specified property.
|
Object |
getValue(javax.el.ELContext context,
Object base,
Object property)
Return a resource bundle for the specified name (if any);
otherwise, return
null . |
boolean |
isReadOnly(javax.el.ELContext context,
Object base,
Object property)
Return
true if the specified property is read only. |
void |
setValue(javax.el.ELContext context,
Object base,
Object property,
Object value)
Set the value of a scoped object for the specified name.
|
public Class getCommonPropertyType(javax.el.ELContext context, Object base)
Return the most general type this resolver accepts for the
property
argument.
getCommonPropertyType
in class javax.el.ELResolver
public Iterator getFeatureDescriptors(javax.el.ELContext context, Object base)
Return an Iterator
over the attributes that this
resolver knows how to deal with.
getFeatureDescriptors
in class javax.el.ELResolver
context
- ELContext
for evaluating this valuebase
- Base object against which this evaluation occurspublic Class getType(javax.el.ELContext context, Object base, Object property)
Return the Java type of the specified property.
getType
in class javax.el.ELResolver
context
- ELContext
for evaluating this valuebase
- Base object against which this evaluation occurs
(must be null because we are evaluating a top level variable)property
- Property name to be accessedpublic Object getValue(javax.el.ELContext context, Object base, Object property)
Return a resource bundle for the specified name (if any);
otherwise, return null
.
getValue
in class javax.el.ELResolver
context
- ELContext
for evaluating this valuebase
- Base object against which this evaluation occurs
(must be null because we are evaluating a top level variable)property
- Property name to be accessedpublic boolean isReadOnly(javax.el.ELContext context, Object base, Object property)
Return true
if the specified property is read only.
isReadOnly
in class javax.el.ELResolver
context
- ELContext
for evaluating this valuebase
- Base object against which this evaluation occurs
(must be null because we are evaluating a top level variable)property
- Property name to be accessedpublic void setValue(javax.el.ELContext context, Object base, Object property, Object value)
Set the value of a scoped object for the specified name.
setValue
in class javax.el.ELResolver
context
- ELContext
for evaluating this valuebase
- Base object against which this evaluation occurs
(must be null because we are evaluating a top level variable)property
- Property name to be accessedvalue
- New value to be setprotected FeatureDescriptor descriptor(String name, String displayName, String description, boolean expert, boolean hidden, boolean preferred, Object type, boolean designTime)
Create and return a FeatureDescriptor
configured with
the specified arguments.
name
- Feature namedisplayName
- Display namedescription
- Short descriptionexpert
- Flag indicating this feature is for expertshidden
- Flag indicating this feature should be hiddenpreferred
- Flag indicating this feature is the preferred one
among features of the same typetype
- Runtime type of this featuredesignTime
- Flag indicating feature is resolvable at design timeCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.