📄 indexedpropertydescriptor.html
字号:
</TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= 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="IndexedPropertyDescriptor(java.lang.String, java.lang.Class)"><!-- --></A><H3>IndexedPropertyDescriptor</H3><PRE>public <B>IndexedPropertyDescriptor</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/lang/Class.html">Class</A> beanClass) throws <A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></PRE><DL><DD>This constructor constructs an IndexedPropertyDescriptor for a property that follows the standard Java conventions by having getFoo and setFoo accessor methods, for both indexed access and array access. <p> Thus if the argument name is "fred", it will assume that there is an indexed reader method "getFred", a non-indexed (array) reader method also called "getFred", an indexed writer method "setFred", and finally a non-indexed writer method "setFred".<DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The programmatic name of the property.<DD><CODE>beanClass</CODE> - The Class object for the target bean.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></CODE> - if an exception occurs during introspection.</DL></DD></DL><HR><A NAME="IndexedPropertyDescriptor(java.lang.String, java.lang.Class, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>IndexedPropertyDescriptor</H3><PRE>public <B>IndexedPropertyDescriptor</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/lang/Class.html">Class</A> beanClass, <A HREF="../../java/lang/String.html">String</A> getterName, <A HREF="../../java/lang/String.html">String</A> setterName, <A HREF="../../java/lang/String.html">String</A> indexedGetterName, <A HREF="../../java/lang/String.html">String</A> indexedSetterName) throws <A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></PRE><DL><DD>This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed.<DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The programmatic name of the property.<DD><CODE>beanClass</CODE> - The Class object for the target bean.<DD><CODE>getterName</CODE> - The name of the method used for reading the property values as an array. May be null if the property is write-only or must be indexed.<DD><CODE>setterName</CODE> - The name of the method used for writing the property values as an array. May be null if the property is read-only or must be indexed.<DD><CODE>indexedGetterName</CODE> - The name of the method used for reading an indexed property value. May be null if the property is write-only.<DD><CODE>indexedSetterName</CODE> - The name of the method used for writing an indexed property value. May be null if the property is read-only.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></CODE> - if an exception occurs during introspection.</DL></DD></DL><HR><A NAME="IndexedPropertyDescriptor(java.lang.String, java.lang.reflect.Method, java.lang.reflect.Method, java.lang.reflect.Method, java.lang.reflect.Method)"><!-- --></A><H3>IndexedPropertyDescriptor</H3><PRE>public <B>IndexedPropertyDescriptor</B>(<A HREF="../../java/lang/String.html">String</A> propertyName, <A HREF="../../java/lang/reflect/Method.html">Method</A> getter, <A HREF="../../java/lang/reflect/Method.html">Method</A> setter, <A HREF="../../java/lang/reflect/Method.html">Method</A> indexedGetter, <A HREF="../../java/lang/reflect/Method.html">Method</A> indexedSetter) throws <A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></PRE><DL><DD>This constructor takes the name of a simple property, and Method objects for reading and writing the property.<DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - The programmatic name of the property.<DD><CODE>getter</CODE> - The method used for reading the property values as an array. May be null if the property is write-only or must be indexed.<DD><CODE>setter</CODE> - The method used for writing the property values as an array. May be null if the property is read-only or must be indexed.<DD><CODE>indexedGetter</CODE> - The method used for reading an indexed property value. May be null if the property is write-only.<DD><CODE>indexedSetter</CODE> - The method used for writing an indexed property value. May be null if the property is read-only.<DT><B>Throws:</B><DD><CODE><A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></CODE> - if an exception occurs during introspection.</DL></DD></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="getIndexedReadMethod()"><!-- --></A><H3>getIndexedReadMethod</H3><PRE>public <A HREF="../../java/lang/reflect/Method.html">Method</A> <B>getIndexedReadMethod</B>()</PRE><DL><DD>Gets the method that should be used to read an indexed property value.<DD><DL><DT><B>Returns:</B><DD>The method that should be used to read an indexed property value. May return null if the property isn't indexed or is write-only.</DL></DD></DL><HR><A NAME="setIndexedReadMethod(java.lang.reflect.Method)"><!-- --></A><H3>setIndexedReadMethod</H3><PRE>public void <B>setIndexedReadMethod</B>(<A HREF="../../java/lang/reflect/Method.html">Method</A> getter) throws <A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></PRE><DL><DD>Sets the method that should be used to read an indexed property value.<DD><DL><DT><B>Parameters:</B><DD><CODE>getter</CODE> - The new indexed getter method.</DL></DD></DL><HR><A NAME="getIndexedWriteMethod()"><!-- --></A><H3>getIndexedWriteMethod</H3><PRE>public <A HREF="../../java/lang/reflect/Method.html">Method</A> <B>getIndexedWriteMethod</B>()</PRE><DL><DD>Gets the method that should be used to write an indexed property value.<DD><DL><DT><B>Returns:</B><DD>The method that should be used to write an indexed property value. May return null if the property isn't indexed or is read-only.</DL></DD></DL><HR><A NAME="setIndexedWriteMethod(java.lang.reflect.Method)"><!-- --></A><H3>setIndexedWriteMethod</H3><PRE>public void <B>setIndexedWriteMethod</B>(<A HREF="../../java/lang/reflect/Method.html">Method</A> setter) throws <A HREF="../../java/beans/IntrospectionException.html">IntrospectionException</A></PRE><DL><DD>Sets the method that should be used to write an indexed property value.<DD><DL><DT><B>Parameters:</B><DD><CODE>getter</CODE> - The new indexed setter method.</DL></DD></DL><HR><A NAME="getIndexedPropertyType()"><!-- --></A><H3>getIndexedPropertyType</H3><PRE>public <A HREF="../../java/lang/Class.html">Class</A> <B>getIndexedPropertyType</B>()</PRE><DL><DD>Gets the Class object of the indexed properties' type. This is the type that will be returned by the indexedReadMethod.<DD><DL><DT><B>Returns:</B><DD>The Java Class for the indexed properties type. Note that the Class may describe a primitive Java type such as "int".</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="class-use/IndexedPropertyDescriptor.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../java/beans/FeatureDescriptor.html"><B>PREV CLASS</B></A> <A HREF="../../java/beans/Introspector.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="IndexedPropertyDescriptor.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -