|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
javax.faces.el Class PropertyResolver
java.lang.Objectjavax.faces.el.PropertyResolver
Deprecated. This has been replaced by
ELResolver.
public abstract class PropertyResolver
- extends Object
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.
| 构造器摘要 | |
|---|---|
PropertyResolver()
Deprecated. |
|
| 方法摘要 | |
|---|---|
abstract Class |
getType(Object base,
int index)
Deprecated. Return the java.lang.Class representing the type of
the specified index. |
abstract Class |
getType(Object base,
Object property)
Deprecated. Return the java.lang.Class representing the type
of the specified property. |
abstract Object |
getValue(Object base,
int index)
Deprecated. Return the value at the specified index of the specified base object. |
abstract Object |
getValue(Object base,
Object property)
Deprecated. Return the value of the specified property from the specified base object. |
abstract boolean |
isReadOnly(Object base,
int index)
Deprecated. Checks if the specified index is read-only. |
abstract boolean |
isReadOnly(Object base,
Object property)
Deprecated. Checks if the specified property is read-only. |
abstract void |
setValue(Object base,
int index,
Object value)
Deprecated. Set the value at the specified index of the specified base object. |
abstract void |
setValue(Object base,
Object property,
Object value)
Deprecated. Set the specified value of the specified property on the specified base object. |
| 类方法继承 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造器详细信息 |
|---|
PropertyResolver
public PropertyResolver()
- Deprecated.
| 方法详细信息 |
|---|
getValue
public abstract Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Return the value of the specified property from the specified base object.
For a bean base object, the property is coerced to a
Stringand used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing.- 参数:
base- The base object whose property value is to be returnedproperty- The property to be returned- 返回:
- The property value, or
nullifbaseorpropertyisnull, or if the property doesn't exist and the base object is aMapinstance - 抛出异常:
EvaluationException- if an exception is thrown while getting the property value (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the specified property for a bean base object does not exist or is not readable
getValue
public abstract Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Return the value at the specified index of the specified base object.
- 参数:
base- The base object whose property value is to be returnedindex- The index of the value to return- 返回:
- The property value, or
nullifbaseisnull, or if the index is out of bounds for the base object - 抛出异常:
EvaluationException- if an exception is thrown while getting the property value (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the index is out of bounds or ifbaseisnull
setValue
public abstract void setValue(Object base, Object property, Object value) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Set the specified value of the specified property on the specified base object.
For a bean base object, the property is coerced to a
Stringand used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing.- 参数:
base- The base object whose property value is to be setproperty- The property to be setvalue- The value of the property to be set- 抛出异常:
EvaluationException- if an exception is thrown while setting the property value (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the specified bean base object property does not exist or is not writeable, or ifbaseornameisnull
setValue
public abstract void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Set the value at the specified index of the specified base object.
- 参数:
base- The base object whose property value is to be setindex- The index of the value to setvalue- The value to be set- 抛出异常:
EvaluationException- if an exception is thrown while setting the property value (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the index is out of bounds or ifbaseisnull
isReadOnly
public abstract boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Checks if the specified property is read-only.
For a bean base object, the property is coerced to a
Stringand used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing.- 参数:
base- The base object whose property is to be analyzedproperty- The property to be analyzed- 返回:
trueif the specified property of the specified base object is known to be immutable; otherwisefalse- 抛出异常:
EvaluationException- if an exception is thrown while testing the property (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the specified bean base object property does not exist or ifbaseorpropertyisnull
isReadOnly
public abstract boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Checks if the specified index is read-only.
- 参数:
base- The base object whose property is to be analyzedindex- The index of the value whose type is to be returned- 返回:
trueif the value at the specified index of the specified base object is known to be immutable; otherwise,false- 抛出异常:
EvaluationException- if an exception is thrown while testing the property (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the index is out of bounds or ifbaseisnull
getType
public abstract Class getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Return the
java.lang.Classrepresenting 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
Stringand used as the property name. For all other base object types (e.g., a Map), the property is used without any coercing.- 参数:
base- The base object whose property is to be analyzedproperty- The property to be analyzed- 返回:
- the
java.lang.Classrepresenting the type of the specified property of the specified base object, if it can be determined; otherwisenull - 抛出异常:
EvaluationException- if an exception is thrown while testing the property (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the specified bean base object property does not exist or ifbaseorpropertyisnull
getType
public abstract Class getType(Object base, int index) throws EvaluationException, PropertyNotFoundException
- Deprecated.
Return the
java.lang.Classrepresenting the type of the specified index.- 参数:
base- The base object whose property is to be analyzedindex- The index of the value whose type is to be returned- 返回:
- The
java.lang.Classrepresenting the type of value at the specified index of the specified base object, if it can be determined; otherwisenull - 抛出异常:
EvaluationException- if an exception is thrown while testing the property (the thrown exception must be included as thecauseproperty of this exception)PropertyNotFoundException- if the index is out of bounds or ifbaseisnull
|
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 | ||||||||
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.
javax.faces.el.PropertyResolver