public class BeanELResolver extends ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor and Description |
---|
BeanELResolver() |
BeanELResolver(boolean readOnly) |
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.lang.Class<?> |
getType(ELContext context,
java.lang.Object base,
java.lang.Object property) |
java.lang.Object |
getValue(ELContext context,
java.lang.Object base,
java.lang.Object property) |
java.lang.Object |
invoke(ELContext context,
java.lang.Object base,
java.lang.Object method,
java.lang.Class<?>[] paramTypes,
java.lang.Object[] params)
Invokes a method on the the given object.
|
boolean |
isReadOnly(ELContext context,
java.lang.Object base,
java.lang.Object property) |
void |
setValue(ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value) |
convertToType
public BeanELResolver()
public BeanELResolver(boolean readOnly)
public java.lang.Class<?> getType(ELContext context, java.lang.Object base, java.lang.Object property)
getType
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose type is to be returnedpublic java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property)
getValue
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be returnedpublic void setValue(ELContext context, java.lang.Object base, java.lang.Object property, java.lang.Object value)
setValue
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property whose value is to be setvalue
- The value to set the property topublic java.lang.Object invoke(ELContext context, java.lang.Object base, java.lang.Object method, java.lang.Class<?>[] paramTypes, java.lang.Object[] params)
ELResolver
null
.invoke
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the method is to be foundmethod
- The method to invokeparamTypes
- The types of the parameters of the method to invokeparams
- The parameters with which to invoke the methodnull
public boolean isReadOnly(ELContext context, java.lang.Object base, java.lang.Object property)
isReadOnly
in class ELResolver
context
- The EL context for this evaluationbase
- The base object on which the property is to be foundproperty
- The property to be checked for read only statustrue
if the identified property is read only,
otherwise false
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext context, java.lang.Object base)
getFeatureDescriptors
in class ELResolver
public java.lang.Class<?> getCommonPropertyType(ELContext context, java.lang.Object base)
getCommonPropertyType
in class ELResolver
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.