Save This Page
Home » glassfish-v2ur2-b04-src » javax » servlet » jsp » el » [javadoc | source]
javax.servlet.jsp.el
public class: ImplicitObjectELResolver [javadoc | source]
java.lang.Object
   javax.el.ELResolver
      javax.servlet.jsp.el.ImplicitObjectELResolver
Defines variable resolution behavior for the EL implicit objects defined in the JSP specification.

The following variables are resolved by this ELResolver, as per the JSP specification:

Fields inherited from javax.el.ELResolver:
TYPE,  RESOLVABLE_AT_DESIGN_TIME
Method from javax.servlet.jsp.el.ImplicitObjectELResolver Summary:
getCommonPropertyType,   getFeatureDescriptors,   getType,   getValue,   isReadOnly,   setValue
Methods from javax.el.ELResolver:
getCommonPropertyType,   getFeatureDescriptors,   getType,   getValue,   isReadOnly,   setValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.servlet.jsp.el.ImplicitObjectELResolver Detail:
 public Class getCommonPropertyType(ELContext context,
    Object base) 
    If the base object is null, returns String.class. Otherwise, returns null.
 public Iterator getFeatureDescriptors(ELContext context,
    Object base) 
    If the base object is null, and the property matches the name of a JSP implicit object, returns an Iterator containing FeatureDescriptor objects with information about each JSP implicit object resolved by this resolver. Otherwise, returns null.

    The Iterator returned must contain one instance of java.beans.FeatureDescriptor for each of the EL implicit objects defined by the JSP spec. Each info object contains information about a single implicit object, and is initialized as follows:

  • displayName - The name of the implicit object.
  • name - Same as displayName property.
  • shortDescription - A suitable description for the implicit object. Will vary by implementation.
  • expert - false
  • hidden - false
  • preferred - true
  • In addition, the following named attributes must be set in the returned FeatureDescriptors:
  • ELResolver#TYPE - The runtime type of the implicit object.
  • ELResolver#RESOLVABLE_AT_DESIGN_TIME - true.
 public Class getType(ELContext context,
    Object base,
    Object property) 
    If the base object is null, and the property matches the name of a JSP implicit object, returns null to indicate that no types are ever accepted to setValue().

    The propertyResolved property of the ELContext object must be set to true by this resolver before returning if an implicit object is matched. If this property is not true after this method is called, the caller should ignore the return value.

 public Object getValue(ELContext context,
    Object base,
    Object property) 
    If the base object is null, and the property matches the name of a JSP implicit object, returns the implicit object.

    The propertyResolved property of the ELContext object must be set to true by this resolver before returning if an implicit object is matched. If this property is not true after this method is called, the caller should ignore the return value.

 public boolean isReadOnly(ELContext context,
    Object base,
    Object property) 
    If the base object is null, and the property matches the name of a JSP implicit object, returns true to indicate that implicit objects cannot be overwritten.

    The propertyResolved property of the ELContext object must be set to true by this resolver before returning if an implicit object is matched. If this property is not true after this method is called, the caller should ignore the return value.

 public  void setValue(ELContext context,
    Object base,
    Object property,
    Object val) 
    If the base object is null, and the property matches the name of a JSP implicit object, throws PropertyNotWritableException to indicate that implicit objects cannot be overwritten.

    The propertyResolved property of the ELContext object must be set to true by this resolver before returning if an implicit object is matched. If this property is not true after this method is called, the caller should ignore the return value.