PageRenderTime 54ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Prototipo/Servlet/lib/xstream-distribution-1.4.1-bin/xstream-1.4.1/docs/javadoc/com/thoughtworks/xstream/converters/javabean/NativePropertySorter.html

http://prototipomemoria.googlecode.com/
HTML | 282 lines | 229 code | 31 blank | 22 comment | 0 complexity | a633f796b7da4dd66e63b57eb418c217 MD5 | raw file
Possible License(s): 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_26) on Thu Aug 11 04:40:25 CEST 2011 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. NativePropertySorter (XStream Core 1.4.1 API)
  9. </TITLE>
  10. <META NAME="date" CONTENT="2011-08-11">
  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="NativePropertySorter (XStream Core 1.4.1 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/NativePropertySorter.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="../../../../../com/thoughtworks/xstream/converters/javabean/JavaBeanProvider.Visitor.html" title="interface in com.thoughtworks.xstream.converters.javabean"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/PropertyDictionary.html" title="class in com.thoughtworks.xstream.converters.javabean"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../../../index.html?com/thoughtworks/xstream/converters/javabean/NativePropertySorter.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="NativePropertySorter.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. com.thoughtworks.xstream.converters.javabean</FONT>
  82. <BR>
  83. Class NativePropertySorter</H2>
  84. <PRE>
  85. <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
  86. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.thoughtworks.xstream.converters.javabean.NativePropertySorter</B>
  87. </PRE>
  88. <DL>
  89. <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/PropertySorter.html" title="interface in com.thoughtworks.xstream.converters.javabean">PropertySorter</A></DD>
  90. </DL>
  91. <HR>
  92. <DL>
  93. <DT><PRE>public class <B>NativePropertySorter</B><DT>extends <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements <A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/PropertySorter.html" title="interface in com.thoughtworks.xstream.converters.javabean">PropertySorter</A></DL>
  94. </PRE>
  95. <P>
  96. A sorter that keeps the natural order of the bean properties as they are returned by the
  97. JavaBean introspection.
  98. <P>
  99. <P>
  100. <DL>
  101. <DT><B>Since:</B></DT>
  102. <DD>1.4</DD>
  103. <DT><B>Author:</B></DT>
  104. <DD>J&ouml;rg Schaible</DD>
  105. </DL>
  106. <HR>
  107. <P>
  108. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  109. <A NAME="constructor_summary"><!-- --></A>
  110. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  111. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  112. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  113. <B>Constructor Summary</B></FONT></TH>
  114. </TR>
  115. <TR BGCOLOR="white" CLASS="TableRowColor">
  116. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/NativePropertySorter.html#NativePropertySorter()">NativePropertySorter</A></B>()</CODE>
  117. <BR>
  118. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  119. </TR>
  120. </TABLE>
  121. &nbsp;
  122. <!-- ========== METHOD SUMMARY =========== -->
  123. <A NAME="method_summary"><!-- --></A>
  124. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  125. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  126. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  127. <B>Method Summary</B></FONT></TH>
  128. </TR>
  129. <TR BGCOLOR="white" CLASS="TableRowColor">
  130. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  131. <CODE>&nbsp;<A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A></CODE></FONT></TD>
  132. <TD><CODE><B><A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/NativePropertySorter.html#sort(java.lang.Class, java.util.Map)">sort</A></B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;type,
  133. <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&nbsp;nameMap)</CODE>
  134. <BR>
  135. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sort the properties of a bean type.</TD>
  136. </TR>
  137. </TABLE>
  138. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  139. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  140. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  141. <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
  142. </TR>
  143. <TR BGCOLOR="white" CLASS="TableRowColor">
  144. <TD><CODE><A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
  145. </TR>
  146. </TABLE>
  147. &nbsp;
  148. <P>
  149. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  150. <A NAME="constructor_detail"><!-- --></A>
  151. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  152. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  153. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  154. <B>Constructor Detail</B></FONT></TH>
  155. </TR>
  156. </TABLE>
  157. <A NAME="NativePropertySorter()"><!-- --></A><H3>
  158. NativePropertySorter</H3>
  159. <PRE>
  160. public <B>NativePropertySorter</B>()</PRE>
  161. <DL>
  162. </DL>
  163. <!-- ============ METHOD DETAIL ========== -->
  164. <A NAME="method_detail"><!-- --></A>
  165. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  166. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  167. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  168. <B>Method Detail</B></FONT></TH>
  169. </TR>
  170. </TABLE>
  171. <A NAME="sort(java.lang.Class, java.util.Map)"><!-- --></A><H3>
  172. sort</H3>
  173. <PRE>
  174. public <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A> <B>sort</B>(<A HREF="http://download.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A>&nbsp;type,
  175. <A HREF="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</A>&nbsp;nameMap)</PRE>
  176. <DL>
  177. <DD><B>Description copied from interface: <CODE><A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/PropertySorter.html#sort(java.lang.Class, java.util.Map)">PropertySorter</A></CODE></B></DD>
  178. <DD>Sort the properties of a bean type. The method will be called with the class type
  179. that contains all the properties and a Map that retains the order in which the
  180. elements have been added. The sequence in which elements are returned by an iterator
  181. defines the processing order of the properties. An implementation may create a
  182. different Map with similar semantic, add all elements of the original map and return
  183. the new one.
  184. <P>
  185. <DD><DL>
  186. <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/PropertySorter.html#sort(java.lang.Class, java.util.Map)">sort</A></CODE> in interface <CODE><A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/PropertySorter.html" title="interface in com.thoughtworks.xstream.converters.javabean">PropertySorter</A></CODE></DL>
  187. </DD>
  188. <DD><DL>
  189. <DT><B>Parameters:</B><DD><CODE>type</CODE> - the bean class that contains all the properties<DD><CODE>nameMap</CODE> - the map to sort, key is the property name, value the
  190. <A HREF="http://download.oracle.com/javase/6/docs/api/java/beans/PropertyDescriptor.html?is-external=true" title="class or interface in java.beans"><CODE>PropertyDescriptor</CODE></A>
  191. <DT><B>Returns:</B><DD>the sorted nameMap</DL>
  192. </DD>
  193. </DL>
  194. <!-- ========= END OF CLASS DATA ========= -->
  195. <HR>
  196. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  197. <A NAME="navbar_bottom"><!-- --></A>
  198. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  199. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  200. <TR>
  201. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  202. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  203. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  204. <TR ALIGN="center" VALIGN="top">
  205. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  206. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  207. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  208. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NativePropertySorter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  209. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  210. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  211. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  212. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  213. </TR>
  214. </TABLE>
  215. </TD>
  216. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  217. </EM>
  218. </TD>
  219. </TR>
  220. <TR>
  221. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  222. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/JavaBeanProvider.Visitor.html" title="interface in com.thoughtworks.xstream.converters.javabean"><B>PREV CLASS</B></A>&nbsp;
  223. &nbsp;<A HREF="../../../../../com/thoughtworks/xstream/converters/javabean/PropertyDictionary.html" title="class in com.thoughtworks.xstream.converters.javabean"><B>NEXT CLASS</B></A></FONT></TD>
  224. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  225. <A HREF="../../../../../index.html?com/thoughtworks/xstream/converters/javabean/NativePropertySorter.html" target="_top"><B>FRAMES</B></A> &nbsp;
  226. &nbsp;<A HREF="NativePropertySorter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  227. &nbsp;<SCRIPT type="text/javascript">
  228. <!--
  229. if(window==top) {
  230. document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  231. }
  232. //-->
  233. </SCRIPT>
  234. <NOSCRIPT>
  235. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  236. </NOSCRIPT>
  237. </FONT></TD>
  238. </TR>
  239. <TR>
  240. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  241. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  242. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  243. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  244. </TR>
  245. </TABLE>
  246. <A NAME="skip-navbar_bottom"></A>
  247. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  248. <HR>
  249. Copyright &#169; 2004-2011 <a href="http://xstream.codehaus.org">XStream</a>. All Rights Reserved.
  250. </BODY>
  251. </HTML>