|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.el.PropertyResolver
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 JavaBean, or
get() and put() calls on a
java.util.Map instance).
| Constructor Summary | |
PropertyResolver()
|
|
| Method Summary | |
abstract java.lang.Class |
getType(java.lang.Object base,
int index)
Return the java.lang.Class representing the type of
value at the specified index of the specified base object, or
null if this value is null. |
abstract java.lang.Class |
getType(java.lang.Object base,
java.lang.String name)
Return the java.lang.Class representing the type of
the specified property of the specified base object, if it can be
determined; otherwise return null. |
abstract java.lang.Object |
getValue(java.lang.Object base,
int index)
Return the value at the specified index of the specified base object. |
abstract java.lang.Object |
getValue(java.lang.Object base,
java.lang.String name)
Return the value of the property with the specified name from the specified base object. |
abstract boolean |
isReadOnly(java.lang.Object base,
int index)
Return true if the value at the specified index of
the specified base object is known to be immutable; otherwise,
return false. |
abstract boolean |
isReadOnly(java.lang.Object base,
java.lang.String name)
Return true if the specified property of the specified
base object is known to be immutable; otherwise, return
false. |
abstract void |
setValue(java.lang.Object base,
int index,
java.lang.Object value)
Set the value at the specified index of the specified base object. |
abstract void |
setValue(java.lang.Object base,
java.lang.String name,
java.lang.Object value)
Set the specified value of the property with the specified name on the specified base object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertyResolver()
| Method Detail |
public abstract java.lang.Object getValue(java.lang.Object base,
java.lang.String name)
throws PropertyNotFoundException
Return the value of the property with the specified name from the specified base object.
base - The base object whose property value is to be returnedname - Name of the property to be returned
java.lang.NullPointerException - if base or
name is null
PropertyNotFoundException - if the specified property name
does not exist, or is not readable
public abstract java.lang.Object getValue(java.lang.Object base,
int index)
throws PropertyNotFoundException
Return the value at the specified index of the specified base object.
base - The base object whose property value is to be returnedindex - Index of the value to return
java.lang.IndexOutOfBoundsException - if thrown by the underlying
access to the base object
java.lang.NullPointerException - if base
is null
PropertyNotFoundException - if some other exception occurs
public abstract void setValue(java.lang.Object base,
java.lang.String name,
java.lang.Object value)
throws PropertyNotFoundException
Set the specified value of the property with the specified name on the specified base object.
base - The base object whose property value is to be setname - Name of the property to be setvalue - Value of the property to be set
java.lang.NullPointerException - if base or
name is null
PropertyNotFoundException - if the specified property name
does not exist, or is not writeable
public abstract void setValue(java.lang.Object base,
int index,
java.lang.Object value)
throws PropertyNotFoundException
Set the value at the specified index of the specified base object.
base - The base object whose property value is to be setindex - Index of the value to setvalue - Value to be set
java.lang.IndexOutOfBoundsException - if thrown by the underlying
access to the base object
java.lang.NullPointerException - if base
is null
PropertyNotFoundException - if some other exception occurs
public abstract boolean isReadOnly(java.lang.Object base,
java.lang.String name)
throws PropertyNotFoundException
Return true if the specified property of the specified
base object is known to be immutable; otherwise, return
false.
base - The base object whose property is to analyzedname - Name of the property to be analyzed
java.lang.NullPointerException - if base or
name is null
PropertyNotFoundException - if the specified property name
does not exist
public abstract boolean isReadOnly(java.lang.Object base,
int index)
throws PropertyNotFoundException
Return true if the value at the specified index of
the specified base object is known to be immutable; otherwise,
return false.
base - The base object whose property is to analyzedindex - Index of the value whose type is to be returned
java.lang.IndexOutOfBoundsException - if thrown by the underlying
accessed to the indexed property
java.lang.NullPointerException - if base
is null
PropertyNotFoundException - if some other exception occurs
public abstract java.lang.Class getType(java.lang.Object base,
java.lang.String name)
throws PropertyNotFoundException
Return the java.lang.Class representing the type of
the specified property of the specified base object, if it can be
determined; otherwise return null.
base - The base object whose property is to analyzedname - Name of the property to be analyzed
java.lang.NullPointerException - if base or
name is null
PropertyNotFoundException - if the specified property name
does not exist
public abstract java.lang.Class getType(java.lang.Object base,
int index)
throws PropertyNotFoundException
Return the java.lang.Class representing the type of
value at the specified index of the specified base object, or
null if this value is null.
base - The base object whose property is to analyzedindex - Index of the value whose type is to be returned
java.lang.IndexOutOfBoundsException - if thrown by the underlying
accessed to the indexed property
java.lang.NullPointerException - if base
is null
PropertyNotFoundException - if some other exception occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||