public class DummyPropertyResolverImpl
extends javax.faces.el.PropertyResolver
| Constructor and Description |
|---|
DummyPropertyResolverImpl() |
| Modifier and Type | Method and Description |
|---|---|
Class |
getType(Object base,
int index)
Return the
java.lang.Class representing the type of
the specified index. |
Class |
getType(Object base,
Object property)
Return the
java.lang.Class representing the type
of the specified property. |
Object |
getValue(Object base,
int index)
Return the value at the specified index of the specified
base object.
|
Object |
getValue(Object base,
Object property)
Return the value of the specified property from the specified
base object.
|
boolean |
isReadOnly(Object base,
int index)
Checks if the specified index is read-only.
|
boolean |
isReadOnly(Object base,
Object property)
Checks if the specified property is read-only.
|
void |
setValue(Object base,
int index,
Object value)
Set the value at the specified index of the specified
base object.
|
void |
setValue(Object base,
Object property,
Object value)
Set the specified value of the specified property on
the specified base object.
|
public Object getValue(Object base, Object property) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverReturn the value of the specified property from the specified base object.
For a bean base object, the property is coerced to a
String and used as the property name.
For all other base object types (e.g., a Map), the property is used
without any coercing.
getValue in class javax.faces.el.PropertyResolverbase - The base object whose property value is to be returnedproperty - The property to be returnednull if base
or property is null, or if the property
doesn't exist and the base object is a Map instancejavax.faces.el.EvaluationException - if an exception is thrown while getting
the property value (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the specified property
for a bean base object does not exist or is not readablepublic Object getValue(Object base, int index) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverReturn the value at the specified index of the specified base object.
getValue in class javax.faces.el.PropertyResolverbase - The base object whose property value is to be returnedindex - The index of the value to returnnull if base
is null, or if the index is out of bounds for the base
objectjavax.faces.el.EvaluationException - if an exception is thrown while getting
the property value (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the index is out of
bounds or if base is nullpublic void setValue(Object base, Object property, Object value) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverSet the specified value of the specified property on the specified base object.
For a bean base object, the property is coerced to a
String and used as the property name.
For all other base object types (e.g., a Map), the property is used
without any coercing.
setValue in class javax.faces.el.PropertyResolverbase - The base object whose property value is to be setproperty - The property to be setvalue - The value of the property to be setjavax.faces.el.EvaluationException - if an exception is thrown while setting
the property value (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the specified bean base
object property does not exist or is not writeable, or if
base or name is nullpublic void setValue(Object base, int index, Object value) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverSet the value at the specified index of the specified base object.
setValue in class javax.faces.el.PropertyResolverbase - The base object whose property value is to be setindex - The index of the value to setvalue - The value to be setjavax.faces.el.EvaluationException - if an exception is thrown while setting
the property value (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the index is out of
bounds or if base is nullpublic boolean isReadOnly(Object base, Object property) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverChecks if the specified property is read-only.
For a bean base object, the property is coerced to a
String and used as the property name.
For all other base object types (e.g., a Map), the property is used
without any coercing.
isReadOnly in class javax.faces.el.PropertyResolverbase - The base object whose property is to be analyzedproperty - The property to be analyzedtrue if the specified property of the specified
base object is known to be immutable; otherwise falsejavax.faces.el.EvaluationException - if an exception is thrown while testing
the property (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the specified bean base
object property does not exist or if base or
property is nullpublic boolean isReadOnly(Object base, int index) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverChecks if the specified index is read-only.
isReadOnly in class javax.faces.el.PropertyResolverbase - The base object whose property is to be analyzedindex - The index of the value whose type is to be returnedtrue if the value at the specified index of
the specified base object is known to be immutable; otherwise,
falsejavax.faces.el.EvaluationException - if an exception is thrown while testing
the property (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the index is out of
bounds or if base is nullpublic Class getType(Object base, Object property) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverReturn the java.lang.Class representing the type
of the specified property. An instance of any Object of that
type my be set as the value of that property, as long as the
property is not read-only. The actual value of the property, if
non-null, is guaranteed to be an instance of this type, or an
instance of a subclass of this type. This method is also useful
for discovering the type of Objects that may be set as the value
of the property.
For a bean base object, the property is coerced to a
String and used as the property name. For all other
base object types (e.g., a Map), the property is used without any
coercing.
getType in class javax.faces.el.PropertyResolverbase - The base object whose property is to be analyzedproperty - The property to be analyzedjava.lang.Class representing the type of
the specified property of the specified base object, if it can be
determined; otherwise nulljavax.faces.el.EvaluationException - if an exception is thrown while testing
the property (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the specified bean base
object property does not exist or if base or
property is nullpublic Class getType(Object base, int index) throws javax.faces.el.EvaluationException, javax.faces.el.PropertyNotFoundException
javax.faces.el.PropertyResolverReturn the java.lang.Class representing the type of
the specified index.
getType in class javax.faces.el.PropertyResolverbase - The base object whose property is to be analyzedindex - The index of the value whose type is to be returnedjava.lang.Class representing the type of
value at the specified index of the specified base object, if it
can be determined; otherwise nulljavax.faces.el.EvaluationException - if an exception is thrown while testing
the property (the thrown exception must be included as the
cause property of this exception)javax.faces.el.PropertyNotFoundException - if the index is out of
bounds or if base is nullCopyright © 2010–2024 JBoss by Red Hat. All rights reserved.