Deprecated
This has been replaced by javax.el.ELResolver.
PropertyResolver represents a pluggable mechanism
for accessing a "property" of an underlying Java object instance.
Different PropertyResolver implementations can support
property resolution on instances of different Java classes (such as
introspection-based access to properties of a JavaBeans component, or
get() and put() calls on a
java.util.Map instance).
All implementations must respect the rules for JavaBeans component,
java.util.Map, java.util.List and array
instances defined for each method but are allowed to add custom
semantics for other types.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Class | Returns: thejava.lang.Class representing the type of
the specified property of the specified base object, if it can be
determined; otherwise nullThe base object whose property is to be analyzed base, Object The property to be analyzed property)Return the |
| public abstract Class | Returns: Thejava.lang.Class representing the type of
value at the specified index of the specified base object, if it
can be determined; otherwise nullThe base object whose property is to be analyzed base, int The index of the value whose type is to be returned index)Return the |
| public abstract Object | Returns: The property value, ornull if base
or property is null, or if the property
doesn't exist and the base object is a Map instanceThe base object whose property value is to be returned base, Object The property to be returned property)Return the value of the specified property from the specified base object. |
| public abstract Object | |
| public abstract boolean | Returns: true if the specified property of the specified
base object is known to be immutable; otherwise falseThe base object whose property is to be analyzed base, Object The property to be analyzed property)Checks if the specified property is read-only. |
| public abstract boolean | Returns: true if the value at the specified index of
the specified base object is known to be immutable; otherwise,
falseThe base object whose property is to be analyzed base, int The index of the value whose type is to be returned index)Checks if the specified index is read-only. |
| public abstract void | |
| public abstract void |
| PropertyResolver | back to summary |
|---|---|
| public PropertyResolver() | |
| getType | back to summary |
|---|---|
| public abstract Class Return the For a bean base object, the property is coerced to a
| |
| getType | back to summary |
|---|---|
| public abstract Class Return the
| |
| getValue | back to summary |
|---|---|
| public abstract Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException Return the value of the specified property from the specified base object. For a bean base object, the property is coerced to a
| |
| getValue | back to summary |
|---|---|
| public abstract Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException Return the value at the specified index of the specified base object.
| |
| isReadOnly | back to summary |
|---|---|
| public abstract boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException Checks if the specified property is read-only. For a bean base object, the property is coerced to a
| |
| isReadOnly | back to summary |
|---|---|
| public abstract boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException Checks if the specified index is read-only.
| |
| setValue | back to summary |
|---|---|
| public abstract void setValue(Object base, Object property, Object value) throws EvaluationException, PropertyNotFoundException Set the specified value of the specified property on the specified base object. For a bean base object, the property is coerced to a
| |
| setValue | back to summary |
|---|---|
| public abstract void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException Set the value at the specified index of the specified base object.
| |