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 jakarta. 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.Overrides jakarta.
Deprecated
for removal since 5.0. This method will be removed without replacement in EL 6.0
If the base object is a ResourceBundle, returns an 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 jakarta. 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 jakarta. 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 jakarta. instanceof 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 jakarta. PropertyNotWritableException.
|
| ResourceBundleELResolver | back to summary |
|---|---|
| public ResourceBundleELResolver() | |
| getCommonPropertyType | back to summary |
|---|---|
| public Class Implements abstract jakarta. 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 Overrides jakarta. Deprecated for removal since 5.0. This method will be removed without replacement in EL 6.0 If the base object is a ResourceBundle, returns an
The
FeatureDescriptors:
| |
| getType | back to summary |
|---|---|
| public Class Implements abstract jakarta. 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 jakarta. If the base object is an instance of
If the base is
| |
| isReadOnly | back to summary |
|---|---|
| public boolean isReadOnly(ELContext context, Object base, Object property) Implements abstract jakarta. If the base object is not null and an
| |
| setValue | back to summary |
|---|---|
| public void setValue(ELContext context, Object base, Object property, Object value) Implements abstract jakarta. If the base object is a ResourceBundle, throw a
| |