| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Jun 15 16:53:37 PDT 2001 --> |
| <TITLE> |
| Apache Struts API Documentation: Class ConvertUtils |
| </TITLE> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <BODY BGCOLOR="white"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_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> </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="../../../../org/apache/struts/util/BeanUtils.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/ErrorMessages.html"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
| <A HREF="ConvertUtils.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: INNER | <A HREF="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.struts.util</FONT> |
| <BR> |
| Class ConvertUtils</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<B>org.apache.struts.util.ConvertUtils</B> |
| </PRE> |
| <HR> |
| <B>Deprecated.</B> <I>At some point after Struts 1.0 final, will be replaced by |
| an equivalent class in the Jakarta Commons Beanutils package.</I> |
| <P> |
| <DL> |
| <DT>public class <B>ConvertUtils</B><DT>extends java.lang.Object</DL> |
| |
| <P> |
| Utility methods for converting String values to objects of the specified |
| class. If you specify a Java primitive type, or an array of a Java |
| primitive type, as a destination type, a scalar or array of the coresponding |
| Java wrapper class will be created instead. If you attempt to convert an |
| Object or Object array of a non-String and non-primitive type, it will be |
| converted to a scalar String or array of Strings, as appropriate. |
| <P> |
| <DL> |
| <DT><B>Version: </B><DD>$Revision: 1.1 $ $Date$</DD> |
| <DT><B>Author: </B><DD>Craig R. McClanahan, Ralph Schaer, Chris Audley</DD> |
| </DL> |
| <HR> |
| |
| <P> |
| <!-- ======== INNER CLASS SUMMARY ======== --> |
| |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultBoolean">defaultBoolean</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Boolean conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Byte</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultByte">defaultByte</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Byte conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Character</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultCharacter">defaultCharacter</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Character conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Double</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultDouble">defaultDouble</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Double conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultFloat">defaultFloat</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Float conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Integer</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultInteger">defaultInteger</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Integer conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultLong">defaultLong</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Long conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#defaultShort">defaultShort</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The default value for Short conversions.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Class</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#stringClass">stringClass</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> The Class object for java.lang.String.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#ConvertUtils()">ConvertUtils</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convert(java.lang.Object)">convert</A></B>(java.lang.Object value)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert the specified value into a String.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convert(java.lang.String[], java.lang.Class)">convert</A></B>(java.lang.String[] values, |
| java.lang.Class clazz)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert an array of specified values to an array of objects of the |
| specified class (if possible).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Object</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convert(java.lang.String, java.lang.Class)">convert</A></B>(java.lang.String value, |
| java.lang.Class clazz)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert the specified value to an object of the specified class (if |
| possible).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertBoolean(java.lang.String, java.lang.Boolean)">convertBoolean</A></B>(java.lang.String value, |
| java.lang.Boolean defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Boolean value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Byte</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertByte(java.lang.String, java.lang.Byte)">convertByte</A></B>(java.lang.String value, |
| java.lang.Byte defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Byte value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Character</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertCharacter(java.lang.String, java.lang.Character)">convertCharacter</A></B>(java.lang.String value, |
| java.lang.Character defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Character value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Double</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertDouble(java.lang.String, java.lang.Double)">convertDouble</A></B>(java.lang.String value, |
| java.lang.Double defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Double value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertFloat(java.lang.String, java.lang.Float)">convertFloat</A></B>(java.lang.String value, |
| java.lang.Float defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Float value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Integer</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertInteger(java.lang.String, java.lang.Integer)">convertInteger</A></B>(java.lang.String value, |
| java.lang.Integer defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Integer value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertLong(java.lang.String, java.lang.Long)">convertLong</A></B>(java.lang.String value, |
| java.lang.Long defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Long value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private static java.lang.Short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#convertShort(java.lang.String, java.lang.Short)">convertShort</A></B>(java.lang.String value, |
| java.lang.Short defaultValue)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Convert a String value to a corresponding Short value.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultBoolean()">getDefaultBoolean</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> byte</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultByte()">getDefaultByte</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> char</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultCharacter()">getDefaultCharacter</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> double</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultDouble()">getDefaultDouble</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultFloat()">getDefaultFloat</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultInteger()">getDefaultInteger</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultLong()">getDefaultLong</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#getDefaultShort()">getDefaultShort</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultBoolean(boolean)">setDefaultBoolean</A></B>(boolean defaultBoolean)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultByte(byte)">setDefaultByte</A></B>(byte defaultByte)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultCharacter(char)">setDefaultCharacter</A></B>(char defaultCharacter)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultDouble(double)">setDefaultDouble</A></B>(double defaultDouble)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultFloat(float)">setDefaultFloat</A></B>(float defaultFloat)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultInteger(int)">setDefaultInteger</A></B>(int defaultInteger)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultLong(long)">setDefaultLong</A></B>(long defaultLong)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/ConvertUtils.html#setDefaultShort(short)">setDefaultShort</A></B>(short defaultShort)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| </TABLE> |
| <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><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <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="defaultBoolean"><!-- --></A><H3> |
| defaultBoolean</H3> |
| <PRE> |
| private static java.lang.Boolean <B>defaultBoolean</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Boolean conversions.</DL> |
| <HR> |
| |
| <A NAME="defaultByte"><!-- --></A><H3> |
| defaultByte</H3> |
| <PRE> |
| private static java.lang.Byte <B>defaultByte</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Byte conversions.</DL> |
| <HR> |
| |
| <A NAME="defaultCharacter"><!-- --></A><H3> |
| defaultCharacter</H3> |
| <PRE> |
| private static java.lang.Character <B>defaultCharacter</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Character conversions.</DL> |
| <HR> |
| |
| <A NAME="defaultDouble"><!-- --></A><H3> |
| defaultDouble</H3> |
| <PRE> |
| private static java.lang.Double <B>defaultDouble</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Double conversions.</DL> |
| <HR> |
| |
| <A NAME="defaultFloat"><!-- --></A><H3> |
| defaultFloat</H3> |
| <PRE> |
| private static java.lang.Float <B>defaultFloat</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Float conversions.</DL> |
| <HR> |
| |
| <A NAME="defaultInteger"><!-- --></A><H3> |
| defaultInteger</H3> |
| <PRE> |
| private static java.lang.Integer <B>defaultInteger</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Integer conversions.</DL> |
| <HR> |
| |
| <A NAME="defaultLong"><!-- --></A><H3> |
| defaultLong</H3> |
| <PRE> |
| private static java.lang.Long <B>defaultLong</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Long conversions.</DL> |
| <HR> |
| |
| <A NAME="defaultShort"><!-- --></A><H3> |
| defaultShort</H3> |
| <PRE> |
| private static java.lang.Short <B>defaultShort</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The default value for Short conversions.</DL> |
| <HR> |
| |
| <A NAME="stringClass"><!-- --></A><H3> |
| stringClass</H3> |
| <PRE> |
| private static java.lang.Class <B>stringClass</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>The Class object for java.lang.String.</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="ConvertUtils()"><!-- --></A><H3> |
| ConvertUtils</H3> |
| <PRE> |
| public <B>ConvertUtils</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </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="getDefaultBoolean()"><!-- --></A><H3> |
| getDefaultBoolean</H3> |
| <PRE> |
| public boolean <B>getDefaultBoolean</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultBoolean(boolean)"><!-- --></A><H3> |
| setDefaultBoolean</H3> |
| <PRE> |
| public void <B>setDefaultBoolean</B>(boolean defaultBoolean)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="getDefaultByte()"><!-- --></A><H3> |
| getDefaultByte</H3> |
| <PRE> |
| public byte <B>getDefaultByte</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultByte(byte)"><!-- --></A><H3> |
| setDefaultByte</H3> |
| <PRE> |
| public void <B>setDefaultByte</B>(byte defaultByte)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="getDefaultCharacter()"><!-- --></A><H3> |
| getDefaultCharacter</H3> |
| <PRE> |
| public char <B>getDefaultCharacter</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultCharacter(char)"><!-- --></A><H3> |
| setDefaultCharacter</H3> |
| <PRE> |
| public void <B>setDefaultCharacter</B>(char defaultCharacter)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="getDefaultDouble()"><!-- --></A><H3> |
| getDefaultDouble</H3> |
| <PRE> |
| public double <B>getDefaultDouble</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultDouble(double)"><!-- --></A><H3> |
| setDefaultDouble</H3> |
| <PRE> |
| public void <B>setDefaultDouble</B>(double defaultDouble)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="getDefaultFloat()"><!-- --></A><H3> |
| getDefaultFloat</H3> |
| <PRE> |
| public float <B>getDefaultFloat</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultFloat(float)"><!-- --></A><H3> |
| setDefaultFloat</H3> |
| <PRE> |
| public void <B>setDefaultFloat</B>(float defaultFloat)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="getDefaultInteger()"><!-- --></A><H3> |
| getDefaultInteger</H3> |
| <PRE> |
| public int <B>getDefaultInteger</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultInteger(int)"><!-- --></A><H3> |
| setDefaultInteger</H3> |
| <PRE> |
| public void <B>setDefaultInteger</B>(int defaultInteger)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="getDefaultLong()"><!-- --></A><H3> |
| getDefaultLong</H3> |
| <PRE> |
| public long <B>getDefaultLong</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultLong(long)"><!-- --></A><H3> |
| setDefaultLong</H3> |
| <PRE> |
| public void <B>setDefaultLong</B>(long defaultLong)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="getDefaultShort()"><!-- --></A><H3> |
| getDefaultShort</H3> |
| <PRE> |
| public short <B>getDefaultShort</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="setDefaultShort(short)"><!-- --></A><H3> |
| setDefaultShort</H3> |
| <PRE> |
| public void <B>setDefaultShort</B>(short defaultShort)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| <HR> |
| |
| <A NAME="convert(java.lang.Object)"><!-- --></A><H3> |
| convert</H3> |
| <PRE> |
| public static java.lang.String <B>convert</B>(java.lang.Object value)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert the specified value into a String. If the specified value |
| is an array, the first element (converted to a String) will be |
| returned.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be converted (may be null)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convert(java.lang.String, java.lang.Class)"><!-- --></A><H3> |
| convert</H3> |
| <PRE> |
| public static java.lang.Object <B>convert</B>(java.lang.String value, |
| java.lang.Class clazz)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert the specified value to an object of the specified class (if |
| possible). Otherwise, return a String representation of the value. |
| If you specify <code>type</code> as the name of a Java primitive |
| type, an instance of the corresponding wrapper class (initialized |
| to the correct value) is returned instead.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be converted (may be null)<DD><CODE>clazz</CODE> - Java class to be converted to (must be java.lang.String |
| or one of the primitive type wrappers)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convert(java.lang.String[], java.lang.Class)"><!-- --></A><H3> |
| convert</H3> |
| <PRE> |
| public static java.lang.Object <B>convert</B>(java.lang.String[] values, |
| java.lang.Class clazz)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert an array of specified values to an array of objects of the |
| specified class (if possible). If you specify <code>type</code> |
| as one of the Java primitive types, an array of that type will be |
| returned; otherwise an array of the requested type (must be String |
| or a Java wrapper class for the primitive types) will be returned.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - Value to be converted (may be null)<DD><CODE>clazz</CODE> - Java array class to be converted to (must be String[], |
| or an array of one of the Java primitive types)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertBoolean(java.lang.String, java.lang.Boolean)"><!-- --></A><H3> |
| convertBoolean</H3> |
| <PRE> |
| private static java.lang.Boolean <B>convertBoolean</B>(java.lang.String value, |
| java.lang.Boolean defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Boolean value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertByte(java.lang.String, java.lang.Byte)"><!-- --></A><H3> |
| convertByte</H3> |
| <PRE> |
| private static java.lang.Byte <B>convertByte</B>(java.lang.String value, |
| java.lang.Byte defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Byte value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertCharacter(java.lang.String, java.lang.Character)"><!-- --></A><H3> |
| convertCharacter</H3> |
| <PRE> |
| private static java.lang.Character <B>convertCharacter</B>(java.lang.String value, |
| java.lang.Character defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Character value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertDouble(java.lang.String, java.lang.Double)"><!-- --></A><H3> |
| convertDouble</H3> |
| <PRE> |
| private static java.lang.Double <B>convertDouble</B>(java.lang.String value, |
| java.lang.Double defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Double value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertFloat(java.lang.String, java.lang.Float)"><!-- --></A><H3> |
| convertFloat</H3> |
| <PRE> |
| private static java.lang.Float <B>convertFloat</B>(java.lang.String value, |
| java.lang.Float defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Float value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertInteger(java.lang.String, java.lang.Integer)"><!-- --></A><H3> |
| convertInteger</H3> |
| <PRE> |
| private static java.lang.Integer <B>convertInteger</B>(java.lang.String value, |
| java.lang.Integer defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Integer value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertLong(java.lang.String, java.lang.Long)"><!-- --></A><H3> |
| convertLong</H3> |
| <PRE> |
| private static java.lang.Long <B>convertLong</B>(java.lang.String value, |
| java.lang.Long defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Long value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="convertShort(java.lang.String, java.lang.Short)"><!-- --></A><H3> |
| convertShort</H3> |
| <PRE> |
| private static java.lang.Short <B>convertShort</B>(java.lang.String value, |
| java.lang.Short defaultValue)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Convert a String value to a corresponding Short value.<DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>value</CODE> - The string value to convert<DD><CODE>defaultValue</CODE> - Default value to return on a conversion error</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> </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="../../../../org/apache/struts/util/BeanUtils.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/ErrorMessages.html"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
| <A HREF="ConvertUtils.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: INNER | <A HREF="#field_summary">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: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| Copyright © 2000-2001 - Apache Software Foundation |
| </BODY> |
| </HTML> |