java.util.ResourceBundle.
This resolver handles base objects of type
java.util.ResourceBundle. It accepts any object as a property
and coerces it to a java.lang.String for invoking
java.util.ResourceBundle#getObject(java.lang.String).
This resolver is read only and will throw a
PropertyNotWritableException if setValue is called.
ELResolvers are combined together using
CompositeELResolvers, to define rich semantics for evaluating an
expression. See the javadocs for ELResolver for details.
CompositeELResolver, ELResolver, java.util.ResourceBundle
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: null if base is not a ResourceBundle;
otherwise String.class.The context of this evaluation. context, Object The bundle to analyze. Only bases of type
base)ResourceBundle are handled by this resolver.Implements abstract javax. property argument.
|
| public Iterator | Returns: AnIterator containing zero or more (possibly
infinitely more) FeatureDescriptor objects, each
representing a key in this bundle, or null if the
base object is not a ResourceBundle.The context of this evaluation. context, Object The bundle whose keys are to be iterated over. Only bases of
type base)ResourceBundle are handled by this
resolver.Implements abstract javax. Iterator
containing the set of keys available in the ResourceBundle.
|
| public Class | Returns: If thepropertyResolved property of
ELContext was set to true, then
null; otherwise undefined.The context of this evaluation. context, Object The ResourceBundle to analyze. base, Object The name of the property to analyze. property)Implements abstract javax. ResourceBundle,
return null, since the resolver is read only.
|
| public Object | Returns: If thepropertyResolved property of
ELContext was set to true, then
null if property is null;
otherwise the Object for the given key
(property coerced to String) from the
ResourceBundle.
If no object for the given key can be found, then the
String "???" + key + "???".The context of this evaluation. context, Object The ResourceBundle to analyze. base, Object The name of the property to analyze. Will be coerced to a
property)String.Implements abstract javax. ResourceBundle,
the provided property will first be coerced to a String.
|
| public boolean | Returns: If thepropertyResolved property of
ELContext was set to true, then
true; otherwise undefined.The context of this evaluation. context, Object The ResourceBundle to be modified. Only bases that are of type
ResourceBundle are handled. base, Object The String property to use. property)Implements abstract javax. ResourceBundle,
return true.
|
| public void | setValue(ELContext
The context of this evaluation. context, Object The ResourceBundle to be modified. Only bases that are of type
ResourceBundle are handled. base, Object The String property to use. property, Object The value to be set. value)Implements abstract javax. PropertyNotWritableException.
|
| ResourceBundleELResolver | back to summary |
|---|---|
| public ResourceBundleELResolver() | |
| getCommonPropertyType | back to summary |
|---|---|
| public Class Implements abstract javax. If the base object is a ResourceBundle, returns the most general type
that this resolver accepts for the
Assuming the base is a | |
| getFeatureDescriptors | back to summary |
|---|---|
| public Iterator Implements abstract javax. If the base object is a ResourceBundle, returns an
The String key
falsefalsetrueFeatureDescriptors:
ELResolver#TYPE - String.classELResolver#RESOLVABLE_AT_DESIGN_TIME - true
| |
| getType | back to summary |
|---|---|
| public Class Implements abstract javax. If the base object is an instance of
If the base is
| |
| getValue | back to summary |
|---|---|
| public Object getValue(ELContext context, Object base, Object property) Implements abstract javax. If the base object is an instance of 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.
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(ELContext context, Object base, Object property) Implements abstract javax. If the base object is not null and an instanceof
| |
| setValue | back to summary |
|---|---|
| public void setValue(ELContext context, Object base, Object property, Object value) Implements abstract javax. If the base object is a ResourceBundle, throw a
| |