Name

PropertyResolver

Synopsis

An instance of a subclass of this abstract class resolves property and element accessor operators in a JSF EL expression. See Appendix B for details about the default resolver.

Synopsis

Class name:

javax.faces.el.PropertyResolver

Extends:

None

Implements:

None

Constructors

public PropertyResolver()

Creates an instance.

Methods

public abstract Class getType(Object base, int index)

Returns the Class representing the type of the element of the base object at the specified index or null if unknown. Throws PropertyNotFoundException if the base object is null or the index is out of bounds, or EvaluationException wrapping any exception thrown while getting the type.

public abstract Class getType(Object base, Object property)

Returns the Class representing the type of the property of the base object (after coercing the property to a String if the base object is a bean) or null if unknown. Throws PropertyNotFoundException if the base object is a bean and the property doesn’t exist or if the base object or the property is null, or EvaluationException wrapping any exception thrown while getting the type.

public abstract Object getValue(Object base, int index)

Returns the Object represented by the element of the base object at the specified index. Throws PropertyNotFoundException if the base object is null or the index is out of bounds, or EvaluationException wrapping any exception thrown while getting the value.

public abstract Object getValue(Object base, ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.