public class MapVariableResolver extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
MapVariableResolver()
Creates the resolver
|
MapVariableResolver(java.util.Map<java.lang.String,java.lang.Object> map)
Creates the resolver
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getCommonPropertyType(ELContext context,
java.lang.Object base) |
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext context,
java.lang.Object base) |
java.util.Map<java.lang.String,java.lang.Object> |
getMap()
Gets the map.
|
java.lang.Class<?> |
getType(ELContext context,
java.lang.Object base,
java.lang.Object property)
Returns the named variable value.
|
java.lang.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property)
Returns the named variable value.
|
boolean |
isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property)
Returns true for read-only.
|
java.lang.Object |
put(java.lang.String var,
java.lang.Object value)
Sets the named variable value.
|
void |
setMap(java.util.Map<java.lang.String,java.lang.Object> map)
Sets the map.
|
void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
Returns the named variable value.
|
java.lang.String |
toString() |
invoke
public MapVariableResolver(java.util.Map<java.lang.String,java.lang.Object> map)
public MapVariableResolver()
public java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
getValue
in class ELResolver
public void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
setValue
in class ELResolver
public java.lang.Object put(java.lang.String var, java.lang.Object value)
public boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
isReadOnly
in class ELResolver
public java.lang.Class<?> getType(ELContext context, java.lang.Object base, java.lang.Object property)
getType
in class ELResolver
public java.lang.Class<?> getCommonPropertyType(ELContext context, java.lang.Object base)
getCommonPropertyType
in class ELResolver
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
getFeatureDescriptors
in class ELResolver
public java.util.Map<java.lang.String,java.lang.Object> getMap()
public void setMap(java.util.Map<java.lang.String,java.lang.Object> map)
public java.lang.String toString()
toString
in class java.lang.Object