public class BeanELResolver extends ELResolver
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BeanELResolver.BeanProperties |
protected static class |
BeanELResolver.BeanProperty |
RESOLVABLE_AT_DESIGN_TIME, TYPE | Constructor and Description |
|---|
BeanELResolver ()
New read/write bean resolver.
|
BeanELResolver (boolean readOnly)
New bean resolver with the specified read-only property.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class |
getCommonPropertyType (ELContext context,
java.lang.Object base)
Returns the most general class of properties in the base object.
|
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 class of the specified property of the base object.
|
java.lang.Object |
getValue (ELContext context,
java.lang.Object base,
java.lang.Object property)
Resolves the specified property of the base object.
|
boolean |
isReadOnly (ELContext context,
java.lang.Object base,
java.lang.Object property)
Indicates whether the specified property of the base object is
read-only.
|
void |
setValue (ELContext context,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
Sets the value of the specified property of the base object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic BeanELResolver()
public BeanELResolver(boolean readOnly)
public java.lang.Object getValue(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
ELResolver getValue in class ELResolver context - the evaluation contextbase - the target of the operationproperty - the property of the base objectjava.lang.NullPointerExceptionPropertyNotFoundException ELException public java.lang.Class getType(ELContext context, java.lang.Object base, java.lang.Object property) throws java.lang.NullPointerException, PropertyNotFoundException, ELException
ELResolver getType in class ELResolver context - the evaluation contextbase - the target of the operationproperty - the property of the base objectjava.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
ELResolver setValue in class ELResolver context - the evaluation contextbase - the target of the operationproperty - the property of the base objectvalue - 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
ELResolver isReadOnly in class ELResolver context - the evaluation contextbase - the target of the operationproperty - the property of the base objectjava.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)
ELResolver getCommonPropertyType in class ELResolver context - the evaluation contextbase - the target of the operation