⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basevalueparser.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<CODE>&nbsp;org.apache.torque.om.NumberKey</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getNumberKey(java.lang.String)">getNumberKey</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an NumberKey for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getObject(java.lang.String)">getObject</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an Object for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getObjects(java.lang.String)">getObjects</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of Objects for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getString(java.lang.String)">getString</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a String for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getString(java.lang.String, java.lang.String)">getString</A></B>(java.lang.String&nbsp;name,          java.lang.String&nbsp;defaultValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a String for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;org.apache.torque.om.StringKey</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getStringKey(java.lang.String)">getStringKey</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an StringKey for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getStrings(java.lang.String)">getStrings</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of Strings for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#getStrings(java.lang.String, java.lang.String[])">getStrings</A></B>(java.lang.String&nbsp;name,           java.lang.String[]&nbsp;defaultValue)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return an array of Strings for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#keys()">keys</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#recycle()">recycle</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recycles the parser.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#recycle(java.lang.String)">recycle</A></B>(java.lang.String&nbsp;characterEncoding)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recycles the parser with a character encoding.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#remove(java.lang.String)">remove</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the named parameter from the contained hashtable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#setCharacterEncoding(java.lang.String)">setCharacterEncoding</A></B>(java.lang.String&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the character encoding that will be used by this ValueParser.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#setProperties(java.lang.Object)">setProperties</A></B>(java.lang.Object&nbsp;bean)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uses bean introspection to set writable properties of bean from the parameters, where a (case-insensitive) name match between the bean property and the parameter is looked for.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#setProperty(java.lang.Object, java.beans.PropertyDescriptor)">setProperty</A></B>(java.lang.Object&nbsp;bean,            java.beans.PropertyDescriptor&nbsp;prop)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the property 'prop' in the bean to the value of the corresponding parameters.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#setString(java.lang.String, java.lang.String)">setString</A></B>(java.lang.String&nbsp;name,          java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a parameter to a specific value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#setStrings(java.lang.String, java.lang.String[])">setStrings</A></B>(java.lang.String&nbsp;name,           java.lang.String[]&nbsp;values)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set a parameter to a specific value.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/apache/turbine/util/parser/BaseValueParser.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simple method that attempts to get a textual representation of this object's name/value pairs.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.util.pool.RecyclableSupport"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class org.apache.turbine.util.pool.<A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html">RecyclableSupport</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#doDispose()">doDispose</A>, <A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#isDisposed()">isDisposed</A>, <A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#Recyclable()">Recyclable</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_org.apache.turbine.util.pool.Recyclable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface org.apache.turbine.util.pool.<A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html">Recyclable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html#isDisposed()">isDisposed</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="parameters"><!-- --></A><H3>parameters</H3><PRE>protected java.util.Hashtable <B>parameters</B></PRE><DL><DD>Random access storage for parameter data.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BaseValueParser()"><!-- --></A><H3>BaseValueParser</H3><PRE>public <B>BaseValueParser</B>()</PRE><DL><DD>Default constructor</DL><HR><A NAME="BaseValueParser(java.lang.String)"><!-- --></A><H3>BaseValueParser</H3><PRE>public <B>BaseValueParser</B>(java.lang.String&nbsp;characterEncoding)</PRE><DL><DD>Constructor that takes a character encoding</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="convertAndTrim(java.lang.String)"><!-- --></A><H3>convertAndTrim</H3><PRE>public static java.lang.String <B>convertAndTrim</B>(java.lang.String&nbsp;value)</PRE><DL><DD>A static version of the convert method, which trims the string data and applies the conversion specified in the property given by URL_CASE_FOLDING.  It returns a new string so that it does not destroy the value data.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - A String to be processed.<DT><B>Returns:</B><DD>A new String converted to lowercase and trimmed.</DL></DD></DL><HR><A NAME="recycle()"><!-- --></A><H3>recycle</H3><PRE>public void <B>recycle</B>()</PRE><DL><DD>Recycles the parser.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html#recycle()">recycle</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/turbine/util/pool/Recyclable.html">Recyclable</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html#recycle()">recycle</A></CODE> in class <CODE><A HREF="../../../../../org/apache/turbine/util/pool/RecyclableSupport.html">RecyclableSupport</A></CODE></DL></DD></DL><HR><A NAME="recycle(java.lang.String)"><!-- --></A><H3>recycle</H3><PRE>public void <B>recycle</B>(java.lang.String&nbsp;characterEncoding)</PRE><DL><DD>Recycles the parser with a character encoding.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>characterEncoding</CODE> - the character encoding.</DL>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -