public class MapELResolver extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE | Constructor and Description |
|---|
MapELResolver ()
New read/write resolver.
|
MapELResolver (boolean readOnly)
New resolver with the specified behavior.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getCommonPropertyType (ELContext context,
java.lang.Object base)
If the base is a map, returns Object.class.
|
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors (ELContext context,
java.lang.Object base)
Returns metadata about the variables or properties within the
specified base object.
|
java.lang.Class |
getType (ELContext context,
java.lang.Object base,
java.lang.Object property)
Returns the type of values in this map.
|
java.lang.Object |
getValue (ELContext context,
java.lang.Object base,
java.lang.Object property)
Returns the value at the given index.
|
boolean |
isReadOnly (ELContext context,
java.lang.Object base,
java.lang.Object property)
Indicates whether the value at the specified index is read-only.
|
void |
setValue (ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
Sets the value at the given index.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MapELResolver()
public MapELResolver(boolean readOnly)
readOnly - true only if the resolver is to be read-onlypublic java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
getValue in class ELResolver property - the map indexcontext - the evaluation contextbase - the target of the operationjava.lang.NullPointerExceptionPropertyNotFoundException ELException public java.lang.Class getType(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
getType in class ELResolver property - the map indexcontext - the evaluation contextbase - the target of the operationjava.lang.NullPointerExceptionPropertyNotFoundException ELException public void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value) throws java.lang.NullPointerException, PropertyNotFoundException, PropertyNotWritableException, ELException
setValue in class ELResolver property - the map indexcontext - the evaluation contextbase - the target of the operationvalue - the new value of the propertyPropertyNotWritableException - if the property is read-onlyjava.lang.NullPointerExceptionPropertyNotFoundException ELException public boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
isReadOnly in class ELResolver property - the map indexcontext - the evaluation contextbase - the target of the operationjava.lang.NullPointerExceptionPropertyNotFoundException ELException public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
ELResolver getFeatureDescriptors in class ELResolver context - the evaluation contextbase - the target of the operationpublic java.lang.Class getCommonPropertyType(ELContext context, java.lang.Object base)
getCommonPropertyType in class ELResolver context - the evaluation contextbase - the target of the operation