| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Aug 22 03:44:10 EDT 2003 --> |
| <TITLE> |
| DynaActionFormClass (Apache Struts API Documentation) |
| </TITLE> |
| <META NAME="keywords" CONTENT="org.apache.struts.action.DynaActionFormClass,DynaActionFormClass class"> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <SCRIPT> |
| function asd() |
| { |
| parent.document.title="DynaActionFormClass (Apache Struts API Documentation)"; |
| } |
| </SCRIPT> |
| <BODY BGCOLOR="white" onload="asd();"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=3 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="class-use/DynaActionFormClass.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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/action/DynaActionForm.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/action/ExceptionHandler.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="DynaActionFormClass.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <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.action</FONT> |
| <BR> |
| Class DynaActionFormClass</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<B>org.apache.struts.action.DynaActionFormClass</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>org.apache.commons.beanutils.DynaClass, java.io.Serializable</DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT>public class <B>DynaActionFormClass</B><DT>extends java.lang.Object<DT>implements org.apache.commons.beanutils.DynaClass, java.io.Serializable</DL> |
| |
| <P> |
| <p>Implementation of <code>DynaClass</code> for |
| <code>DynaActionForm</code> classes that allow developers to define |
| ActionForms without having to individually code all of the classes. |
| <strong>NOTE</strong> - This class is only used in the internal |
| implementation of dynamic action form beans. Applications never need |
| to consult this documentation.</p> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| <DT><B>Version:</B></DT> |
| <DD>$Revision: 1.1 $ $Date$</DD> |
| <DT><B>Author:</B></DT> |
| <DD>Craig McClanahan</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html" TARGET="org.apache.struts.action.DynaActionFormClass">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED 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>protected java.lang.Class</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#beanClass">beanClass</A></B></CODE> |
| |
| <BR> |
| The <code>DynaActionForm</code> implementation <code>Class</code> which |
| we will use to create new bean instances.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#config">config</A></B></CODE> |
| |
| <BR> |
| The form bean configuration information for this class.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected static java.util.HashMap</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#dynaClasses">dynaClasses</A></B></CODE> |
| |
| <BR> |
| The set of <code>DynaActionFormClass</code> instances that have |
| ever been created, keyed by the form bean name.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#lock">lock</A></B></CODE> |
| |
| <BR> |
| The lockable object we can synchronize on, even if dynaClasses |
| is null,</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#name">name</A></B></CODE> |
| |
| <BR> |
| The "dynamic class name" for this <code>DynaClass</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected org.apache.commons.beanutils.DynaProperty[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#properties">properties</A></B></CODE> |
| |
| <BR> |
| The set of dynamic properties that are part of this DynaClass.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.util.HashMap</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#propertiesMap">propertiesMap</A></B></CODE> |
| |
| <BR> |
| The set of dynamic properties that are part of this DynaClass, |
| keyed by the property name.</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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private </CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#DynaActionFormClass(org.apache.struts.config.FormBeanConfig)">DynaActionFormClass</A></B>(<A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A> config)</CODE> |
| |
| <BR> |
| Construct a new DynaActionFormClass for the specified form bean |
| configuration.</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 void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#clear()">clear</A></B>()</CODE> |
| |
| <BR> |
| Clear our cache of DynaActionFormClass instances.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#createDynaActionFormClass(org.apache.struts.config.FormBeanConfig)">createDynaActionFormClass</A></B>(<A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A> config)</CODE> |
| |
| <BR> |
| Create (if necessary) and return a new <code>DynaActionFormClass</code> |
| instance for the specified form bean configuration instance.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.Class</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#getBeanClass()">getBeanClass</A></B>()</CODE> |
| |
| <BR> |
| Return the implementation class we are using to construct new |
| instances, re-introspecting our <A HREF="../../../../org/apache/struts/config/FormBeanConfig.html"><CODE>FormBeanConfig</CODE></A> if necessary |
| (that is, after being deserialized, since <code>beanClass</code> is |
| marked transient.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> org.apache.commons.beanutils.DynaProperty[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#getDynaProperties()">getDynaProperties</A></B>()</CODE> |
| |
| <BR> |
| Return an array of <code>DynaProperty</code>s for the properties |
| currently defined in this DynaClass.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> org.apache.commons.beanutils.DynaProperty</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#getDynaProperty(java.lang.String)">getDynaProperty</A></B>(java.lang.String name)</CODE> |
| |
| <BR> |
| Return a property descriptor for the specified property, if it exists; |
| otherwise, return <code>null</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#getName()">getName</A></B>()</CODE> |
| |
| <BR> |
| Return the name of this DynaClass (analogous to the |
| <code>getName()</code> method of <code>java.lang.Class</code), which |
| allows the same <code>DynaClass</code> implementation class to support |
| different dynamic classes, with different sets of properties.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#introspect(org.apache.struts.config.FormBeanConfig)">introspect</A></B>(<A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A> config)</CODE> |
| |
| <BR> |
| Introspect our form bean configuration to identify the supported |
| properties.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> org.apache.commons.beanutils.DynaBean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#newInstance()">newInstance</A></B>()</CODE> |
| |
| <BR> |
| Instantiate and return a new <A HREF="../../../../org/apache/struts/action/DynaActionForm.html"><CODE>DynaActionForm</CODE></A> instance, |
| associated with this <code>DynaActionFormClass</code>.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html#toString()">toString</A></B>()</CODE> |
| |
| <BR> |
| Render a String representation of this object.</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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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="beanClass"><!-- --></A><H3> |
| beanClass</H3> |
| <PRE> |
| protected transient java.lang.Class <B>beanClass</B></PRE> |
| <DL> |
| <DD>The <code>DynaActionForm</code> implementation <code>Class</code> which |
| we will use to create new bean instances. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="config"><!-- --></A><H3> |
| config</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A> <B>config</B></PRE> |
| <DL> |
| <DD>The form bean configuration information for this class. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="name"><!-- --></A><H3> |
| name</H3> |
| <PRE> |
| protected java.lang.String <B>name</B></PRE> |
| <DL> |
| <DD>The "dynamic class name" for this <code>DynaClass</code>. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="properties"><!-- --></A><H3> |
| properties</H3> |
| <PRE> |
| protected org.apache.commons.beanutils.DynaProperty[] <B>properties</B></PRE> |
| <DL> |
| <DD>The set of dynamic properties that are part of this DynaClass. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="propertiesMap"><!-- --></A><H3> |
| propertiesMap</H3> |
| <PRE> |
| protected java.util.HashMap <B>propertiesMap</B></PRE> |
| <DL> |
| <DD>The set of dynamic properties that are part of this DynaClass, |
| keyed by the property name. Individual descriptor instances will |
| be the same instances as those in the <code>properties</code> list. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="dynaClasses"><!-- --></A><H3> |
| dynaClasses</H3> |
| <PRE> |
| protected static transient java.util.HashMap <B>dynaClasses</B></PRE> |
| <DL> |
| <DD>The set of <code>DynaActionFormClass</code> instances that have |
| ever been created, keyed by the form bean name. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="lock"><!-- --></A><H3> |
| lock</H3> |
| <PRE> |
| protected static java.lang.String <B>lock</B></PRE> |
| <DL> |
| <DD>The lockable object we can synchronize on, even if dynaClasses |
| is null, |
| <P> |
| <DL> |
| </DL> |
| </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="DynaActionFormClass(org.apache.struts.config.FormBeanConfig)"><!-- --></A><H3> |
| DynaActionFormClass</H3> |
| <PRE> |
| private <B>DynaActionFormClass</B>(<A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A> config)</PRE> |
| <DL> |
| <DD>Construct a new DynaActionFormClass for the specified form bean |
| configuration. This constructor is private; DynaActionFormClass |
| instances will be created as needed via calls to the |
| static <code>createDynaActionFormClass()</code> method. |
| <P> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The FormBeanConfig instance describing the properties |
| of the bean to be created |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the bean implementation class |
| specified in the configuration is not DynaActionForm (or a subclass |
| of DynaActionForm)</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="getName()"><!-- --></A><H3> |
| getName</H3> |
| <PRE> |
| public java.lang.String <B>getName</B>()</PRE> |
| <DL> |
| <DD>Return the name of this DynaClass (analogous to the |
| <code>getName()</code> method of <code>java.lang.Class</code), which |
| allows the same <code>DynaClass</code> implementation class to support |
| different dynamic classes, with different sets of properties. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>getName</CODE> in interface <CODE>org.apache.commons.beanutils.DynaClass</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDynaProperty(java.lang.String)"><!-- --></A><H3> |
| getDynaProperty</H3> |
| <PRE> |
| public org.apache.commons.beanutils.DynaProperty <B>getDynaProperty</B>(java.lang.String name)</PRE> |
| <DL> |
| <DD>Return a property descriptor for the specified property, if it exists; |
| otherwise, return <code>null</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>getDynaProperty</CODE> in interface <CODE>org.apache.commons.beanutils.DynaClass</CODE></DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the dynamic property for which a descriptor |
| is requested |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if no property name is specified</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDynaProperties()"><!-- --></A><H3> |
| getDynaProperties</H3> |
| <PRE> |
| public org.apache.commons.beanutils.DynaProperty[] <B>getDynaProperties</B>()</PRE> |
| <DL> |
| <DD><p>Return an array of <code>DynaProperty</code>s for the properties |
| currently defined in this DynaClass. If no properties are defined, a |
| zero-length array will be returned.</p> |
| |
| <p><strong>FIXME</strong> - Should we really be implementing |
| <code>getBeanInfo()</code> instead, which returns property descriptors |
| and a bunch of other stuff?</p> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>getDynaProperties</CODE> in interface <CODE>org.apache.commons.beanutils.DynaClass</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="newInstance()"><!-- --></A><H3> |
| newInstance</H3> |
| <PRE> |
| public org.apache.commons.beanutils.DynaBean <B>newInstance</B>() |
| throws java.lang.IllegalAccessException, |
| java.lang.InstantiationException</PRE> |
| <DL> |
| <DD><p>Instantiate and return a new <A HREF="../../../../org/apache/struts/action/DynaActionForm.html"><CODE>DynaActionForm</CODE></A> instance, |
| associated with this <code>DynaActionFormClass</code>. The |
| properties of the returned <A HREF="../../../../org/apache/struts/action/DynaActionForm.html"><CODE>DynaActionForm</CODE></A> will have been |
| initialized to the default values specified in the form bean |
| configuration information.</p> |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>newInstance</CODE> in interface <CODE>org.apache.commons.beanutils.DynaClass</CODE></DL> |
| </DD> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalAccessException</CODE> - if the Class or the appropriate |
| constructor is not accessible |
| <DD><CODE>java.lang.InstantiationException</CODE> - if this Class represents an abstract |
| class, an array class, a primitive type, or void; or if instantiation |
| fails for some other reason</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="toString()"><!-- --></A><H3> |
| toString</H3> |
| <PRE> |
| public java.lang.String <B>toString</B>()</PRE> |
| <DL> |
| <DD>Render a String representation of this object. |
| <P> |
| <DD><DL> |
| <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="clear()"><!-- --></A><H3> |
| clear</H3> |
| <PRE> |
| public static void <B>clear</B>()</PRE> |
| <DL> |
| <DD>Clear our cache of DynaActionFormClass instances. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="createDynaActionFormClass(org.apache.struts.config.FormBeanConfig)"><!-- --></A><H3> |
| createDynaActionFormClass</H3> |
| <PRE> |
| public static <A HREF="../../../../org/apache/struts/action/DynaActionFormClass.html">DynaActionFormClass</A> <B>createDynaActionFormClass</B>(<A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A> config)</PRE> |
| <DL> |
| <DD>Create (if necessary) and return a new <code>DynaActionFormClass</code> |
| instance for the specified form bean configuration instance. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The FormBeanConfig instance describing the properties |
| of the bean to be created |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the bean implementation class |
| specified in the configuration is not DynaActionForm (or a subclass |
| of DynaActionForm)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getBeanClass()"><!-- --></A><H3> |
| getBeanClass</H3> |
| <PRE> |
| protected java.lang.Class <B>getBeanClass</B>()</PRE> |
| <DL> |
| <DD>Return the implementation class we are using to construct new |
| instances, re-introspecting our <A HREF="../../../../org/apache/struts/config/FormBeanConfig.html"><CODE>FormBeanConfig</CODE></A> if necessary |
| (that is, after being deserialized, since <code>beanClass</code> is |
| marked transient. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="introspect(org.apache.struts.config.FormBeanConfig)"><!-- --></A><H3> |
| introspect</H3> |
| <PRE> |
| protected void <B>introspect</B>(<A HREF="../../../../org/apache/struts/config/FormBeanConfig.html">FormBeanConfig</A> config)</PRE> |
| <DL> |
| <DD>Introspect our form bean configuration to identify the supported |
| properties. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The FormBeanConfig instance describing the properties |
| of the bean to be created |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the bean implementation class |
| specified in the configuration is not DynaActionForm (or a subclass |
| of DynaActionForm)</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=3 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="class-use/DynaActionFormClass.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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/action/DynaActionForm.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/action/ExceptionHandler.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="DynaActionFormClass.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <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-2003 - Apache Software Foundation |
| </BODY> |
| </HTML> |