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

📄 valueparser.html

📁 turbine教程
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<HR><A NAME="getLong(java.lang.String, long)"><!-- --></A><H3>getLong</H3><PRE>public long <B>getLong</B>(java.lang.String&nbsp;name,                    long&nbsp;defaultValue)</PRE><DL><DD>Return a long for the given name.  If the name does not exist, return defaultValue.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DD><CODE>defaultValue</CODE> - The default value.<DT><B>Returns:</B><DD>A long.</DL></DD></DL><HR><A NAME="getLong(java.lang.String)"><!-- --></A><H3>getLong</H3><PRE>public long <B>getLong</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return a long for the given name.  If the name does not exist, return 0.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A long.</DL></DD></DL><HR><A NAME="getLongs(java.lang.String)"><!-- --></A><H3>getLongs</H3><PRE>public long[] <B>getLongs</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return an array of longs for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A long[].</DL></DD></DL><HR><A NAME="getLongObjects(java.lang.String)"><!-- --></A><H3>getLongObjects</H3><PRE>public java.lang.Long[] <B>getLongObjects</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return an array of Longs for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A Long[].</DL></DD></DL><HR><A NAME="getByte(java.lang.String, byte)"><!-- --></A><H3>getByte</H3><PRE>public byte <B>getByte</B>(java.lang.String&nbsp;name,                    byte&nbsp;defaultValue)</PRE><DL><DD>Return a byte for the given name.  If the name does not exist, return defaultValue.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DD><CODE>defaultValue</CODE> - The default value.<DT><B>Returns:</B><DD>A byte.</DL></DD></DL><HR><A NAME="getByte(java.lang.String)"><!-- --></A><H3>getByte</H3><PRE>public byte <B>getByte</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return a byte for the given name.  If the name does not exist, return 0.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A byte.</DL></DD></DL><HR><A NAME="getBytes(java.lang.String)"><!-- --></A><H3>getBytes</H3><PRE>public byte[] <B>getBytes</B>(java.lang.String&nbsp;name)                throws java.io.UnsupportedEncodingException</PRE><DL><DD>Return an array of bytes for the given name.  If the name does not exist, return null. The array is returned according to the HttpRequest's character encoding.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A byte[].<DT><B>Throws:</B><DD><CODE>UnsupportedEncodingException.</CODE> - &nbsp;</DL></DD></DL><HR><A NAME="getString(java.lang.String)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return a String for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A String.</DL></DD></DL><HR><A NAME="get(java.lang.String)"><!-- --></A><H3>get</H3><PRE>public java.lang.String <B>get</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return a String for the given name.  If the name does not exist, return null. It is the same as the getString() method however has been added for simplicity when working with template tools such as Velocity which allow you to do something like this: <code>$data.Parameters.form_variable_name</code><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A String.</DL></DD></DL><HR><A NAME="getString(java.lang.String, java.lang.String)"><!-- --></A><H3>getString</H3><PRE>public java.lang.String <B>getString</B>(java.lang.String&nbsp;name,                                  java.lang.String&nbsp;defaultValue)</PRE><DL><DD>Return a String for the given name.  If the name does not exist, return the defaultValue.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DD><CODE>defaultValue</CODE> - The default value.<DT><B>Returns:</B><DD>A String.</DL></DD></DL><HR><A NAME="setString(java.lang.String, java.lang.String)"><!-- --></A><H3>setString</H3><PRE>public void <B>setString</B>(java.lang.String&nbsp;name,                      java.lang.String&nbsp;value)</PRE><DL><DD>Set a parameter to a specific value. This is useful if you want your action to override the values of the parameters for the screen to use.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the parameter.<DD><CODE>value</CODE> - The value to set.</DL></DD></DL><HR><A NAME="getStrings(java.lang.String)"><!-- --></A><H3>getStrings</H3><PRE>public java.lang.String[] <B>getStrings</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return an array of Strings for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A String[].</DL></DD></DL><HR><A NAME="getStrings(java.lang.String, java.lang.String[])"><!-- --></A><H3>getStrings</H3><PRE>public java.lang.String[] <B>getStrings</B>(java.lang.String&nbsp;name,                                     java.lang.String[]&nbsp;defaultValue)</PRE><DL><DD>Return an array of Strings for the given name.  If the name does not exist, return the defaultValue.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DD><CODE>defaultValue</CODE> - The default value.<DT><B>Returns:</B><DD>A String[].</DL></DD></DL><HR><A NAME="setStrings(java.lang.String, java.lang.String[])"><!-- --></A><H3>setStrings</H3><PRE>public void <B>setStrings</B>(java.lang.String&nbsp;name,                       java.lang.String[]&nbsp;values)</PRE><DL><DD>Set a parameter to a specific value. This is useful if you want your action to override the values of the parameters for the screen to use.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the parameter.<DD><CODE>values</CODE> - The value to set.</DL></DD></DL><HR><A NAME="getObject(java.lang.String)"><!-- --></A><H3>getObject</H3><PRE>public java.lang.Object <B>getObject</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return an Object for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>An Object.</DL></DD></DL><HR><A NAME="getObjects(java.lang.String)"><!-- --></A><H3>getObjects</H3><PRE>public java.lang.Object[] <B>getObjects</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return an array of Objects for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>An Object[].</DL></DD></DL><HR><A NAME="getDate(java.lang.String, java.text.DateFormat, java.util.Date)"><!-- --></A><H3>getDate</H3><PRE>public java.util.Date <B>getDate</B>(java.lang.String&nbsp;name,                              java.text.DateFormat&nbsp;df,                              java.util.Date&nbsp;defaultValue)</PRE><DL><DD>Returns a java.util.Date object.  String is parsed by supplied DateFormat.  If the name does not exist, return the defaultValue.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DD><CODE>df</CODE> - A DateFormat.<DD><CODE>defaultValue</CODE> - The default value.<DT><B>Returns:</B><DD>A Date.</DL></DD></DL><HR><A NAME="getDate(java.lang.String)"><!-- --></A><H3>getDate</H3><PRE>public java.util.Date <B>getDate</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Returns a java.util.Date object.  If there are DateSelector style parameters then these are used.  If not and there is a parameter 'name' then this is parsed by DateFormat.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>A Date.</DL></DD></DL><HR><A NAME="getDate(java.lang.String, java.text.DateFormat)"><!-- --></A><H3>getDate</H3><PRE>public java.util.Date <B>getDate</B>(java.lang.String&nbsp;name,                              java.text.DateFormat&nbsp;df)</PRE><DL><DD>Returns a java.util.Date object.  String is parsed by supplied DateFormat.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DD><CODE>df</CODE> - A DateFormat.<DT><B>Returns:</B><DD>A Date.</DL></DD></DL><HR><A NAME="getNumberKey(java.lang.String)"><!-- --></A><H3>getNumberKey</H3><PRE>public org.apache.torque.om.NumberKey <B>getNumberKey</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return an NumberKey for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>An NumberKey.</DL></DD></DL><HR><A NAME="getStringKey(java.lang.String)"><!-- --></A><H3>getStringKey</H3><PRE>public org.apache.torque.om.StringKey <B>getStringKey</B>(java.lang.String&nbsp;name)</PRE><DL><DD>Return an NumberKey for the given name.  If the name does not exist, return null.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - A String with the name.<DT><B>Returns:</B><DD>An StringKey.</DL></DD></DL><HR><A NAME="setProperties(java.lang.Object)"><!-- --></A><H3>setProperties</H3><PRE>public void <B>setProperties</B>(java.lang.Object&nbsp;bean)                   throws java.lang.Exception</PRE><DL><DD>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.<DD><DL><DT><B>Parameters:</B><DD><CODE>bean</CODE> - An Object.<DT><B>Throws:</B><DD><CODE>Exception,</CODE> - a generic exception.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Simple method that attempts to get a toString() representation of this object.  It doesn't do well with String[]'s though.<DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>A String.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ValueParser.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../org/apache/turbine/util/RunData.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ValueParser.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR>Copyright &copy; 2000-2002 Apache Software Foundation. All Rights Reserved.</BODY></HTML>

⌨️ 快捷键说明

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