|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.el.ELResolver org.apache.shale.test.el.FacesResourceBundleELResolver
public class FacesResourceBundleELResolver
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.
Field Summary |
---|
Fields inherited from class javax.el.ELResolver |
---|
RESOLVABLE_AT_DESIGN_TIME, TYPE |
Constructor Summary | |
---|---|
FacesResourceBundleELResolver()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FacesResourceBundleELResolver()
Method Detail |
---|
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 time
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |