Top Description Constructors Methods
com.sun.faces.el

public Class DummyPropertyResolverImpl

extends PropertyResolver
Class Inheritance
Annotations
@SuppressWarnings:deprecation
Imports
javax.faces.el.EvaluationException, .PropertyNotFoundException, .PropertyResolver, javax.faces.context.FacesContext

Deprecated

as a consequence of PropertyResolver being deprecated. See corresponding docs for further information.

Default propertyResolver implementation that gets the ELContext from the argument FacesContext and calls setPropertyResolved(false) on it. This is provided to ensure that the legacy property resolvers continue to work with unfied EL API

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<T>
getType(Object
The base object whose property is to be analyzed
base
,
Object
The property to be analyzed
property
)

Implements abstract javax.faces.el.PropertyResolver.getType.

Return the java.lang.Class representing the type of the specified property.

public Class<T>
getType(Object
The base object whose property is to be analyzed
base
,
int
The index of the value whose type is to be returned
index
)

Implements abstract javax.faces.el.PropertyResolver.getType.

Return the java.lang.Class representing the type of the specified index.

public Object
getValue(Object
The base object whose property value is to be returned
base
,
Object
The property to be returned
property
)

Implements abstract javax.faces.el.PropertyResolver.getValue.

Return the value of the specified property from the specified base object.

public Object
getValue(Object
The base object whose property value is to be returned
base
,
int
The index of the value to return
index
)

Implements abstract javax.faces.el.PropertyResolver.getValue.

Return the value at the specified index of the specified base object.

public boolean
isReadOnly(Object
The base object whose property is to be analyzed
base
,
Object
The property to be analyzed
property
)

Implements abstract javax.faces.el.PropertyResolver.isReadOnly.

Checks if the specified property is read-only.

public boolean
isReadOnly(Object
The base object whose property is to be analyzed
base
,
int
The index of the value whose type is to be returned
index
)

Implements abstract javax.faces.el.PropertyResolver.isReadOnly.

Checks if the specified index is read-only.

public void
setValue(Object
The base object whose property value is to be set
base
,
Object
The property to be set
property
,
Object
The value of the property to be set
value
)

Implements abstract javax.faces.el.PropertyResolver.setValue.

Set the specified value of the specified property on the specified base object.

public void
setValue(Object
The base object whose property value is to be set
base
,
int
The index of the value to set
index
,
Object
The value to be set
value
)

Implements abstract javax.faces.el.PropertyResolver.setValue.

Set the value at the specified index of the specified base object.

Constructor Detail

DummyPropertyResolverImplback to summary
public DummyPropertyResolverImpl()

Method Detail

getTypeback to summary
public Class<T> getType(Object base, Object property) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.getType.

Doc from javax.faces.el.PropertyResolver.getType.

Return 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.

Parameters
base:Object

The base object whose property is to be analyzed

property:Object

The property to be analyzed

Returns:Class<T>

the java.lang.Class representing the type of the specified property of the specified base object, if it can be determined; otherwise null

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the specified bean base object property does not exist or if base or property is null
getTypeback to summary
public Class<T> getType(Object base, int index) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.getType.

Doc from javax.faces.el.PropertyResolver.getType.

Return the java.lang.Class representing the type of the specified index.

Parameters
base:Object

The base object whose property is to be analyzed

index:int

The index of the value whose type is to be returned

Returns:Class<T>

The java.lang.Class representing the type of value at the specified index of the specified base object, if it can be determined; otherwise null

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the index is out of bounds or if base is null
getValueback to summary
public Object getValue(Object base, Object property) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.getValue.

Doc from javax.faces.el.PropertyResolver.getValue.

Return 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.

Parameters
base:Object

The base object whose property value is to be returned

property:Object

The property to be returned

Returns:Object

The property value, or null if base or property is null, or if the property doesn't exist and the base object is a Map instance

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while getting the property value (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the specified property for a bean base object does not exist or is not readable
getValueback to summary
public Object getValue(Object base, int index) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.getValue.

Doc from javax.faces.el.PropertyResolver.getValue.

Return the value at the specified index of the specified base object.

Parameters
base:Object

The base object whose property value is to be returned

index:int

The index of the value to return

Returns:Object

The property value, or null if base is null, or if the index is out of bounds for the base object

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while getting the property value (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the index is out of bounds or if base is null
isReadOnlyback to summary
public boolean isReadOnly(Object base, Object property) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.isReadOnly.

Doc from javax.faces.el.PropertyResolver.isReadOnly.

Checks 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.

Parameters
base:Object

The base object whose property is to be analyzed

property:Object

The property to be analyzed

Returns:boolean

true if the specified property of the specified base object is known to be immutable; otherwise false

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the specified bean base object property does not exist or if base or property is null
isReadOnlyback to summary
public boolean isReadOnly(Object base, int index) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.isReadOnly.

Doc from javax.faces.el.PropertyResolver.isReadOnly.

Checks if the specified index is read-only.

Parameters
base:Object

The base object whose property is to be analyzed

index:int

The index of the value whose type is to be returned

Returns:boolean

true if the value at the specified index of the specified base object is known to be immutable; otherwise, false

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while testing the property (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the index is out of bounds or if base is null
setValueback to summary
public void setValue(Object base, Object property, Object value) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.setValue.

Doc from javax.faces.el.PropertyResolver.setValue.

Set 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.

Parameters
base:Object

The base object whose property value is to be set

property:Object

The property to be set

value:Object

The value of the property to be set

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while setting the property value (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the specified bean base object property does not exist or is not writeable, or if base or name is null
setValueback to summary
public void setValue(Object base, int index, Object value) throws EvaluationException, PropertyNotFoundException

Implements abstract javax.faces.el.PropertyResolver.setValue.

Doc from javax.faces.el.PropertyResolver.setValue.

Set the value at the specified index of the specified base object.

Parameters
base:Object

The base object whose property value is to be set

index:int

The index of the value to set

value:Object

The value to be set

Annotations
@Override
Exceptions
EvaluationException:
if an exception is thrown while setting the property value (the thrown exception must be included as the cause property of this exception)
PropertyNotFoundException:
if the index is out of bounds or if base is null