| java.lang.Object javax.el.ELResolver javax.el.ResourceBundleELResolver
Method Summary | |
public Class> | getCommonPropertyType(ELContext context, Object base) If the base object is a ResourceBundle, returns the most general type
that this resolver accepts for the property argument.
Otherwise, returns null .
Assuming the base is a ResourceBundle , this method will
always return String.class .
Parameters: context - The context of this evaluation. Parameters: base - The bundle to analyze. | public Iterator | getFeatureDescriptors(ELContext context, Object base) If the base object is a ResourceBundle, returns an Iterator
containing the set of keys available in the ResourceBundle .
Otherwise, returns null .
The Iterator returned must contain zero or more instances
of
java.beans.FeatureDescriptor . | public Class> | getType(ELContext context, Object base, Object property) If the base object is an instance of ResourceBundle ,
return null , since the resolver is read only.
If the base is ResourceBundle , the
propertyResolved property of the ELContext
object must be set to true by this resolver, before
returning. | public Object | getValue(ELContext context, Object base, Object property) If the base object is an instance of ResourceBundle ,
the provided property will first be coerced to a String .
The Object returned by getObject on
the base ResourceBundle will be returned.
If the base is ResourceBundle , the
propertyResolved property of the ELContext
object must be set to true by this resolver, before
returning. | public boolean | isReadOnly(ELContext context, Object base, Object property) If the base object is not null and an instanceof
ResourceBundle ,
return true .
Parameters: context - The context of this evaluation. Parameters: base - The ResourceBundle to be modified. | public void | setValue(ELContext context, Object base, Object property, Object value) If the base object is a ResourceBundle, throw a
PropertyNotWritableException .
Parameters: context - The context of this evaluation. Parameters: base - The ResourceBundle to be modified. |
getCommonPropertyType | public Class> getCommonPropertyType(ELContext context, Object base)(Code) | | If the base object is a ResourceBundle, returns the most general type
that this resolver accepts for the property argument.
Otherwise, returns null .
Assuming the base is a ResourceBundle , this method will
always return String.class .
Parameters: context - The context of this evaluation. Parameters: base - The bundle to analyze. Only bases of typeResourceBundle are handled by this resolver. null if base is not a ResourceBundle ;otherwise String.class . |
getFeatureDescriptors | public Iterator getFeatureDescriptors(ELContext context, Object base)(Code) | | If the base object is a ResourceBundle, returns an Iterator
containing the set of keys available in the ResourceBundle .
Otherwise, returns null .
The Iterator returned must contain zero or more instances
of
java.beans.FeatureDescriptor . Each info object contains
information about a key in the ResourceBundle, and is initialized as
follows:
displayName - The String key
name - Same as displayName property.
shortDescription - Empty string
expert - false
hidden - false
preferred - true
In addition, the following named attributes must be set in the returned
FeatureDescriptor s:
ELResolver.TYPE - String.class
ELResolver.RESOLVABLE_AT_DESIGN_TIME - true
Parameters: context - The context of this evaluation. Parameters: base - The bundle whose keys are to be iterated over. Only bases oftype ResourceBundle are handled by thisresolver. An Iterator containing zero or more (possiblyinfinitely more) FeatureDescriptor objects, eachrepresenting a key in this bundle, or null if thebase object is not a ResourceBundle. |
getType | public Class> getType(ELContext context, Object base, Object property)(Code) | | If the base object is an instance of ResourceBundle ,
return null , since the resolver is read only.
If the base is ResourceBundle , the
propertyResolved property of the ELContext
object must be set to true by this resolver, before
returning. If this property is not true after this method
is called, the caller should ignore the return value.
Parameters: context - The context of this evaluation. Parameters: base - The ResourceBundle to analyze. Parameters: property - The name of the property to analyze. If the propertyResolved property ofELContext was set to true , thennull ; otherwise undefined. throws: NullPointerException - if context is null |
getValue | public Object getValue(ELContext context, Object base, Object property)(Code) | | If the base object is an instance of ResourceBundle ,
the provided property will first be coerced to a String .
The Object returned by getObject on
the base ResourceBundle will be returned.
If the base is ResourceBundle , the
propertyResolved property of the ELContext
object must be set to true by this resolver, before
returning. If this property is not true after this method
is called, the caller should ignore the return value.
Parameters: context - The context of this evaluation. Parameters: base - The ResourceBundle to analyze. Parameters: property - The name of the property to analyze. Will be coerced to aString . If the propertyResolved property ofELContext was set to true , thennull if property is null ;otherwise the Object for the given key(property coerced to String ) from theResourceBundle .If no object for the given key can be found, then the String "???" + key + "???". throws: NullPointerException - if context is null throws: ELException - if an exception was thrown while performing the property orvariable resolution. The thrown exception must be included asthe cause property of this exception, if available. |
isReadOnly | public boolean isReadOnly(ELContext context, Object base, Object property)(Code) | | If the base object is not null and an instanceof
ResourceBundle ,
return true .
Parameters: context - The context of this evaluation. Parameters: base - The ResourceBundle to be modified. Only bases that are of typeResourceBundle are handled. Parameters: property - The String property to use. If the propertyResolved property ofELContext was set to true , thentrue ; otherwise undefined. throws: NullPointerException - if context is null |
setValue | public void setValue(ELContext context, Object base, Object property, Object value)(Code) | | If the base object is a ResourceBundle, throw a
PropertyNotWritableException .
Parameters: context - The context of this evaluation. Parameters: base - The ResourceBundle to be modified. Only bases that are of typeResourceBundle are handled. Parameters: property - The String property to use. Parameters: value - The value to be set. throws: NullPointerException - if context is null . throws: PropertyNotWritableException - Always thrown if base is an instance of ReasourceBundle. |
Methods inherited from javax.el.ELResolver | abstract public Class> getCommonPropertyType(ELContext context, Object base)(Code)(Java Doc) abstract public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext context, Object base)(Code)(Java Doc) abstract public Class> getType(ELContext context, Object base, Object property)(Code)(Java Doc) abstract public Object getValue(ELContext context, Object base, Object property)(Code)(Java Doc) abstract public boolean isReadOnly(ELContext context, Object base, Object property)(Code)(Java Doc) abstract public void setValue(ELContext context, Object base, Object property, Object value)(Code)(Java Doc)
|
|
|