PageRenderTime 50ms CodeModel.GetById 11ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/docs/org/apache/xmlrpc/util/ReflectionUtil.html

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
HTML | 274 lines | 221 code | 31 blank | 22 comment | 0 complexity | b8181b920eec9b561e6c60fe9fc705c2 MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_0) on Mon Apr 20 21:45:57 CEST 2009 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. ReflectionUtil (Apache XML-RPC 3.1.2 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2009-04-20">
  11. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  12. <SCRIPT type="text/javascript">
  13. function windowTitle()
  14. {
  15. if (location.href.indexOf('is-external=true') == -1) {
  16. parent.document.title="ReflectionUtil (Apache XML-RPC 3.1.2 API)";
  17. }
  18. }
  19. </SCRIPT>
  20. <NOSCRIPT>
  21. </NOSCRIPT>
  22. </HEAD>
  23. <BODY BGCOLOR="white" onload="windowTitle();">
  24. <HR>
  25. <!-- ========= START OF TOP NAVBAR ======= -->
  26. <A NAME="navbar_top"><!-- --></A>
  27. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  28. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  29. <TR>
  30. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  31. <A NAME="navbar_top_firstrow"><!-- --></A>
  32. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  33. <TR ALIGN="center" VALIGN="top">
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  36. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReflectionUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  40. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  41. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  42. </TR>
  43. </TABLE>
  44. </TD>
  45. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  46. </EM>
  47. </TD>
  48. </TR>
  49. <TR>
  50. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  51. &nbsp;<A HREF="../../../../org/apache/xmlrpc/util/LimitedInputStream.html" title="class in org.apache.xmlrpc.util"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../../org/apache/xmlrpc/util/SAXParsers.html" title="class in org.apache.xmlrpc.util"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../../index.html?org/apache/xmlrpc/util/ReflectionUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="ReflectionUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  56. &nbsp;<SCRIPT type="text/javascript">
  57. <!--
  58. if(window==top) {
  59. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  60. }
  61. //-->
  62. </SCRIPT>
  63. <NOSCRIPT>
  64. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  65. </NOSCRIPT>
  66. </FONT></TD>
  67. </TR>
  68. <TR>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  71. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  72. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  73. </TR>
  74. </TABLE>
  75. <A NAME="skip-navbar_top"></A>
  76. <!-- ========= END OF TOP NAVBAR ========= -->
  77. <HR>
  78. <!-- ======== START OF CLASS DATA ======== -->
  79. <H2>
  80. <FONT SIZE="-1">
  81. org.apache.xmlrpc.util</FONT>
  82. <BR>
  83. Class ReflectionUtil</H2>
  84. <PRE>
  85. java.lang.Object
  86. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.xmlrpc.util.ReflectionUtil</B>
  87. </PRE>
  88. <HR>
  89. <DL>
  90. <DT><PRE>public class <B>ReflectionUtil</B><DT>extends java.lang.Object</DL>
  91. </PRE>
  92. <P>
  93. A utility class for using reflection.
  94. <P>
  95. <P>
  96. <HR>
  97. <P>
  98. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  99. <A NAME="constructor_summary"><!-- --></A>
  100. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  101. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  102. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  103. <B>Constructor Summary</B></FONT></TH>
  104. </TR>
  105. <TR BGCOLOR="white" CLASS="TableRowColor">
  106. <TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/util/ReflectionUtil.html#ReflectionUtil()">ReflectionUtil</A></B>()</CODE>
  107. <BR>
  108. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  109. </TR>
  110. </TABLE>
  111. &nbsp;
  112. <!-- ========== METHOD SUMMARY =========== -->
  113. <A NAME="method_summary"><!-- --></A>
  114. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  115. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  116. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  117. <B>Method Summary</B></FONT></TH>
  118. </TR>
  119. <TR BGCOLOR="white" CLASS="TableRowColor">
  120. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  121. <CODE>static&nbsp;boolean</CODE></FONT></TD>
  122. <TD><CODE><B><A HREF="../../../../org/apache/xmlrpc/util/ReflectionUtil.html#setProperty(java.lang.Object, java.lang.String, java.lang.String)">setProperty</A></B>(java.lang.Object&nbsp;pObject,
  123. java.lang.String&nbsp;pPropertyName,
  124. java.lang.String&nbsp;pPropertyValue)</CODE>
  125. <BR>
  126. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method attempts to set a property value on a given object by calling a
  127. matching setter.</TD>
  128. </TR>
  129. </TABLE>
  130. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  131. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  132. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  133. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  134. </TR>
  135. <TR BGCOLOR="white" CLASS="TableRowColor">
  136. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  137. </TR>
  138. </TABLE>
  139. &nbsp;
  140. <P>
  141. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  142. <A NAME="constructor_detail"><!-- --></A>
  143. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  144. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  145. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  146. <B>Constructor Detail</B></FONT></TH>
  147. </TR>
  148. </TABLE>
  149. <A NAME="ReflectionUtil()"><!-- --></A><H3>
  150. ReflectionUtil</H3>
  151. <PRE>
  152. public <B>ReflectionUtil</B>()</PRE>
  153. <DL>
  154. </DL>
  155. <!-- ============ METHOD DETAIL ========== -->
  156. <A NAME="method_detail"><!-- --></A>
  157. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  158. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  159. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  160. <B>Method Detail</B></FONT></TH>
  161. </TR>
  162. </TABLE>
  163. <A NAME="setProperty(java.lang.Object, java.lang.String, java.lang.String)"><!-- --></A><H3>
  164. setProperty</H3>
  165. <PRE>
  166. public static boolean <B>setProperty</B>(java.lang.Object&nbsp;pObject,
  167. java.lang.String&nbsp;pPropertyName,
  168. java.lang.String&nbsp;pPropertyValue)
  169. throws java.lang.IllegalAccessException,
  170. java.lang.reflect.InvocationTargetException</PRE>
  171. <DL>
  172. <DD>This method attempts to set a property value on a given object by calling a
  173. matching setter.
  174. <P>
  175. <DD><DL>
  176. <DT><B>Parameters:</B><DD><CODE>pObject</CODE> - The object, on which a property is being set.<DD><CODE>pPropertyName</CODE> - The property name.<DD><CODE>pPropertyValue</CODE> - The property value.
  177. <DT><B>Returns:</B><DD>Whether a matching setter was found. The value false indicates, that no such
  178. setter exists.
  179. <DT><B>Throws:</B>
  180. <DD><CODE>java.lang.IllegalAccessException</CODE> - Setting the property value failed, because invoking
  181. the setter raised an <CODE>IllegalAccessException</CODE>.
  182. <DD><CODE>java.lang.reflect.InvocationTargetException</CODE> - Setting the property value failed, because invoking
  183. the setter raised another exception.</DL>
  184. </DD>
  185. </DL>
  186. <!-- ========= END OF CLASS DATA ========= -->
  187. <HR>
  188. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  189. <A NAME="navbar_bottom"><!-- --></A>
  190. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  191. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  192. <TR>
  193. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  194. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  195. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  196. <TR ALIGN="center" VALIGN="top">
  197. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  198. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  199. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  200. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReflectionUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  201. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  202. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  203. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  204. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  205. </TR>
  206. </TABLE>
  207. </TD>
  208. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  209. </EM>
  210. </TD>
  211. </TR>
  212. <TR>
  213. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  214. &nbsp;<A HREF="../../../../org/apache/xmlrpc/util/LimitedInputStream.html" title="class in org.apache.xmlrpc.util"><B>PREV CLASS</B></A>&nbsp;
  215. &nbsp;<A HREF="../../../../org/apache/xmlrpc/util/SAXParsers.html" title="class in org.apache.xmlrpc.util"><B>NEXT CLASS</B></A></FONT></TD>
  216. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  217. <A HREF="../../../../index.html?org/apache/xmlrpc/util/ReflectionUtil.html" target="_top"><B>FRAMES</B></A> &nbsp;
  218. &nbsp;<A HREF="ReflectionUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  219. &nbsp;<SCRIPT type="text/javascript">
  220. <!--
  221. if(window==top) {
  222. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  223. }
  224. //-->
  225. </SCRIPT>
  226. <NOSCRIPT>
  227. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  228. </NOSCRIPT>
  229. </FONT></TD>
  230. </TR>
  231. <TR>
  232. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  233. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  234. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  235. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  236. </TR>
  237. </TABLE>
  238. <A NAME="skip-navbar_bottom"></A>
  239. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  240. <HR>
  241. Copyright &#169; 2001-2009 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
  242. </BODY>
  243. </HTML>