elcontext.html
来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 533 行 · 第 1/2 页
HTML
533 行
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="ELContext()"><!-- --></A><H3>ELContext</H3><PRE>public <B>ELContext</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="setPropertyResolved(boolean)"><!-- --></A><H3>setPropertyResolved</H3><PRE>public void <B>setPropertyResolved</B>(boolean resolved)</PRE><DL><DD>Called to indicate that a <code>ELResolver</code> has successfully resolved a given (base, property) pair. <p>The <A HREF="../../javax/el/CompositeELResolver.html" title="class in javax.el"><CODE>CompositeELResolver</CODE></A> checks this property to determine whether it should consider or skip other component resolvers.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>resolved</CODE> - true if the property has been resolved, or false if not.<DT><B>See Also:</B><DD><A HREF="../../javax/el/CompositeELResolver.html" title="class in javax.el"><CODE>CompositeELResolver</CODE></A></DL></DD></DL><HR><A NAME="isPropertyResolved()"><!-- --></A><H3>isPropertyResolved</H3><PRE>public boolean <B>isPropertyResolved</B>()</PRE><DL><DD>Returns whether an <A HREF="../../javax/el/ELResolver.html" title="class in javax.el"><CODE>ELResolver</CODE></A> has successfully resolved a given (base, property) pair. <p>The <A HREF="../../javax/el/CompositeELResolver.html" title="class in javax.el"><CODE>CompositeELResolver</CODE></A> checks this property to determine whether it should consider or skip other component resolvers.</p><P><DD><DL><DT><B>Returns:</B><DD>true if the property has been resolved, or false if not.<DT><B>See Also:</B><DD><A HREF="../../javax/el/CompositeELResolver.html" title="class in javax.el"><CODE>CompositeELResolver</CODE></A></DL></DD></DL><HR><A NAME="putContext(java.lang.Class, java.lang.Object)"><!-- --></A><H3>putContext</H3><PRE>public void <B>putContext</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> key, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> contextObject)</PRE><DL><DD>Associates a context object with this <code>ELContext</code>. <p>The <code>ELContext</code> maintains a collection of context objects relevant to the evaluation of an expression. These context objects are used by <code>ELResolver</code>s. This method is used to add a context object to that collection.</p> <p>By convention, the <code>contextObject</code> will be of the type specified by the <code>key</code>. However, this is not required and the key is used strictly as a unique identifier.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - The key used by an @{link ELResolver} to identify this context object.<DD><CODE>contextObject</CODE> - The context object to add to the collection.<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 key is null or contextObject is null.</DL></DD></DL><HR><A NAME="getContext(java.lang.Class)"><!-- --></A><H3>getContext</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getContext</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A> key)</PRE><DL><DD>Returns the context object associated with the given key. <p>The <code>ELContext</code> maintains a collection of context objects relevant to the evaluation of an expression. These context objects are used by <code>ELResolver</code>s. This method is used to retrieve the context with the given key from the collection.</p> <p>By convention, the object returned will be of the type specified by the <code>key</code>. However, this is not required and the key is used strictly as a unique identifier.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - The unique identifier that was used to associate the context object with this <code>ELContext</code>.<DT><B>Returns:</B><DD>The context object associated with the given key, or null if no such context was found.<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 key is null.</DL></DD></DL><HR><A NAME="getELResolver()"><!-- --></A><H3>getELResolver</H3><PRE>public abstract <A HREF="../../javax/el/ELResolver.html" title="class in javax.el">ELResolver</A> <B>getELResolver</B>()</PRE><DL><DD>Retrieves the <code>ELResolver</code> associated with this context. <p>The <code>ELContext</code> maintains a reference to the <code>ELResolver</code> that will be consulted to resolve variables and properties during an expression evaluation. This method retrieves the reference to the resolver.</p> <p>Once an <code>ELContext</code> is constructed, the reference to the <code>ELResolver</code> associated with the context cannot be changed.</p><P><DD><DL><DT><B>Returns:</B><DD>The resolver to be consulted for variable and property resolution during expression evaluation.</DL></DD></DL><HR><A NAME="getFunctionMapper()"><!-- --></A><H3>getFunctionMapper</H3><PRE>public abstract <A HREF="../../javax/el/FunctionMapper.html" title="class in javax.el">FunctionMapper</A> <B>getFunctionMapper</B>()</PRE><DL><DD>Retrieves the <code>FunctionMapper</code> associated with this <code>ELContext</code>.<P><DD><DL><DT><B>Returns:</B><DD>The function mapper to be consulted for the resolution of EL functions.</DL></DD></DL><HR><A NAME="getLocale()"><!-- --></A><H3>getLocale</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> <B>getLocale</B>()</PRE><DL><DD>Get the <code>Locale</code> stored by a previous invocation to <A HREF="../../javax/el/ELContext.html#setLocale(java.util.Locale)"><CODE>setLocale(java.util.Locale)</CODE></A>. If this method returns non <code>null</code>, this <code>Locale</code> must be used for all localization needs in the implementation. The <code>Locale</code> must not be cached to allow for applications that change <code>Locale</code> dynamically.<P><DD><DL><DT><B>Returns:</B><DD>The <code>Locale</code> in which this instance is operating. Used primarily for message localization.</DL></DD></DL><HR><A NAME="setLocale(java.util.Locale)"><!-- --></A><H3>setLocale</H3><PRE>public void <B>setLocale</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Locale.html" title="class or interface in java.util">Locale</A> locale)</PRE><DL><DD>Set the <code>Locale</code> for this instance. This method may be called by the party creating the instance, such as JavaServer Faces or JSP, to enable the EL implementation to provide localized messages to the user. If no <code>Locale</code> is set, the implementation must use the locale returned by <code>Locale.getDefault( )</code>.<P><DD><DL></DL></DD></DL><HR><A NAME="getVariableMapper()"><!-- --></A><H3>getVariableMapper</H3><PRE>public abstract <A HREF="../../javax/el/VariableMapper.html" title="class in javax.el">VariableMapper</A> <B>getVariableMapper</B>()</PRE><DL><DD>Retrieves the <code>VariableMapper</code> associated with this <code>ELContext</code>.<P><DD><DL><DT><B>Returns:</B><DD>The variable mapper to be consulted for the resolution of EL variables.</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/el/CompositeELResolver.html" title="class in javax.el"><B>PREV CLASS</B></A> <A HREF="../../javax/el/ELContextEvent.html" title="class in javax.el"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?javax/el/ELContext.html" target="_top"><B>FRAMES</B></A> <A HREF="ELContext.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 | FIELD | <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 + =
减小字号Ctrl + -
显示快捷键?