📄 implicitobjectelresolver.html
字号:
the name of a JSP implicit object, throws <code>PropertyNotWritableException</code> to indicate that implicit objects cannot be overwritten. <p>The <code>propertyResolved</code> property of the <code>ELContext</code> object must be set to <code>true</code> by this resolver before returning if an implicit object is matched. If this property is not <code>true</code> after this method is called, the caller should ignore the return value.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/el/ELResolver.html#setValue(javax.el.ELContext, java.lang.Object, java.lang.Object, java.lang.Object)">setValue</A></CODE> in class <CODE><A HREF="../../../../javax/el/ELResolver.html" title="class in javax.el">ELResolver</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - The context of this evaluation.<DD><CODE>base</CODE> - Only <code>null</code> is handled by this resolver. Other values will result in an immediate return.<DD><CODE>property</CODE> - The name of the implicit object.<DD><CODE>val</CODE> - The value to be associated with the implicit object.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if context is <code>null</code>.<DD><CODE><A HREF="../../../../javax/el/PropertyNotWritableException.html" title="class in javax.el">PropertyNotWritableException</A></CODE> - always thrown, if the implicit object name is recognized by this resolver.<DD><CODE><A HREF="../../../../javax/servlet/jsp/el/ELException.html" title="class in javax.servlet.jsp.el">ELException</A></CODE> - if an exception was thrown while performing the property or variable resolution. The thrown exception must be included as the cause property of this exception, if available.</DL></DD></DL><HR><A NAME="isReadOnly(javax.el.ELContext, java.lang.Object, java.lang.Object)"><!-- --></A><H3>isReadOnly</H3><PRE>public boolean <B>isReadOnly</B>(<A HREF="../../../../javax/el/ELContext.html" title="class in javax.el">ELContext</A> context, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> base, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> property)</PRE><DL><DD>If the base object is <code>null</code>, and the property matches the name of a JSP implicit object, returns <code>true</code> to indicate that implicit objects cannot be overwritten. <p>The <code>propertyResolved</code> property of the <code>ELContext</code> object must be set to <code>true</code> by this resolver before returning if an implicit object is matched. If this property is not <code>true</code> after this method is called, the caller should ignore the return value.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/el/ELResolver.html#isReadOnly(javax.el.ELContext, java.lang.Object, java.lang.Object)">isReadOnly</A></CODE> in class <CODE><A HREF="../../../../javax/el/ELResolver.html" title="class in javax.el">ELResolver</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - The context of this evaluation.<DD><CODE>base</CODE> - Only <code>null</code> is handled by this resolver. Other values will result in an immediate return.<DD><CODE>property</CODE> - The name of the implicit object.<DT><B>Returns:</B><DD>If the <code>propertyResolved</code> property of <code>ELContext</code> was set to <code>true</code>, then <code>true</code>; otherwise undefined.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if context is <code>null</code>.<DD><CODE><A HREF="../../../../javax/servlet/jsp/el/ELException.html" title="class in javax.servlet.jsp.el">ELException</A></CODE> - if an exception was thrown while performing the property or variable resolution. The thrown exception must be included as the cause property of this exception, if available.</DL></DD></DL><HR><A NAME="getFeatureDescriptors(javax.el.ELContext, java.lang.Object)"><!-- --></A><H3>getFeatureDescriptors</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A><<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/beans/FeatureDescriptor.html" title="class or interface in java.beans">FeatureDescriptor</A>> <B>getFeatureDescriptors</B>(<A HREF="../../../../javax/el/ELContext.html" title="class in javax.el">ELContext</A> context, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> base)</PRE><DL><DD>If the base object is <code>null</code>, and the property matches the name of a JSP implicit object, returns an <code>Iterator</code> containing <code>FeatureDescriptor</code> objects with information about each JSP implicit object resolved by this resolver. Otherwise, returns <code>null</code>. <p>The <code>Iterator</code> returned must contain one instance of <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/beans/FeatureDescriptor.html" title="class or interface in java.beans"><CODE>FeatureDescriptor</CODE></A> 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: <dl> <li>displayName - The name of the implicit object.</li> <li>name - Same as displayName property.</li> <li>shortDescription - A suitable description for the implicit object. Will vary by implementation.</li> <li>expert - <code>false</code></li> <li>hidden - <code>false</code></li> <li>preferred - <code>true</code></li> </dl> In addition, the following named attributes must be set in the returned <code>FeatureDescriptor</code>s: <dl> <li><A HREF="../../../../javax/el/ELResolver.html#TYPE"><CODE>ELResolver.TYPE</CODE></A> - The runtime type of the implicit object.</li> <li><A HREF="../../../../javax/el/ELResolver.html#RESOLVABLE_AT_DESIGN_TIME"><CODE>ELResolver.RESOLVABLE_AT_DESIGN_TIME</CODE></A> - <code>true</code>.</li> </dl></p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/el/ELResolver.html#getFeatureDescriptors(javax.el.ELContext, java.lang.Object)">getFeatureDescriptors</A></CODE> in class <CODE><A HREF="../../../../javax/el/ELResolver.html" title="class in javax.el">ELResolver</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - The context of this evaluation.<DD><CODE>base</CODE> - Only <code>null</code> is handled by this resolver. Other values will result in a <code>null</code> return value.<DT><B>Returns:</B><DD>An <code>Iterator</code> containing one <code>FeatureDescriptor</code> object for each implicit object, or <code>null</code> if <code>base</code> is not <code>null</code>.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/beans/FeatureDescriptor.html" title="class or interface in java.beans"><CODE>FeatureDescriptor</CODE></A></DL></DD></DL><HR><A NAME="getCommonPropertyType(javax.el.ELContext, java.lang.Object)"><!-- --></A><H3>getCommonPropertyType</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A><<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> <B>getCommonPropertyType</B>(<A HREF="../../../../javax/el/ELContext.html" title="class in javax.el">ELContext</A> context, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> base)</PRE><DL><DD>If the base object is <code>null</code>, returns <code>String.class</code>. Otherwise, returns <code>null</code>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../javax/el/ELResolver.html#getCommonPropertyType(javax.el.ELContext, java.lang.Object)">getCommonPropertyType</A></CODE> in class <CODE><A HREF="../../../../javax/el/ELResolver.html" title="class in javax.el">ELResolver</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - The context of this evaluation.<DD><CODE>base</CODE> - Only <code>null</code> is handled by this resolver. Other values will result in a <code>null</code> return value.<DT><B>Returns:</B><DD><code>null</code> if base is not <code>null</code>; otherwise <code>String.class</code>.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../javax/servlet/jsp/el/FunctionMapper.html" title="interface in javax.servlet.jsp.el"><B>PREV CLASS</B></A> <A HREF="../../../../javax/servlet/jsp/el/ScopedAttributeELResolver.html" title="class in javax.servlet.jsp.el"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?javax/servlet/jsp/el/ImplicitObjectELResolver.html" target="_top"><B>FRAMES</B></A> <A HREF="ImplicitObjectELResolver.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_javax.el.ELResolver">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../legal/license.html" target="_top">license terms.</a></font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -