/Prototipo/Servlet/lib/xstream-distribution-1.4.1-bin/xstream-1.4.1/docs/javadoc/com/thoughtworks/xstream/core/ReferencingMarshallingContext.html

http://prototipomemoria.googlecode.com/ · HTML · 330 lines · 276 code · 34 blank · 20 comment · 0 complexity · 2aa5262ea0445ffd865360a30faae46e MD5 · raw file

  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:24 CEST 2011 -->
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. <TITLE>
  8. ReferencingMarshallingContext (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="ReferencingMarshallingContext (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/ReferencingMarshallingContext.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/core/ReferenceByXPathUnmarshaller.html" title="class in com.thoughtworks.xstream.core"><B>PREV CLASS</B></A>&nbsp;
  52. &nbsp;<A HREF="../../../../com/thoughtworks/xstream/core/SequenceGenerator.html" title="class in com.thoughtworks.xstream.core"><B>NEXT CLASS</B></A></FONT></TD>
  53. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  54. <A HREF="../../../../index.html?com/thoughtworks/xstream/core/ReferencingMarshallingContext.html" target="_top"><B>FRAMES</B></A> &nbsp;
  55. &nbsp;<A HREF="ReferencingMarshallingContext.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;CONSTR&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;CONSTR&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.core</FONT>
  82. <BR>
  83. Interface ReferencingMarshallingContext</H2>
  84. <DL>
  85. <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../com/thoughtworks/xstream/converters/DataHolder.html" title="interface in com.thoughtworks.xstream.converters">DataHolder</A>, <A HREF="../../../../com/thoughtworks/xstream/converters/MarshallingContext.html" title="interface in com.thoughtworks.xstream.converters">MarshallingContext</A></DD>
  86. </DL>
  87. <HR>
  88. <DL>
  89. <DT><PRE>public interface <B>ReferencingMarshallingContext</B><DT>extends <A HREF="../../../../com/thoughtworks/xstream/converters/MarshallingContext.html" title="interface in com.thoughtworks.xstream.converters">MarshallingContext</A></DL>
  90. </PRE>
  91. <P>
  92. A <A HREF="../../../../com/thoughtworks/xstream/converters/MarshallingContext.html" title="interface in com.thoughtworks.xstream.converters"><CODE>MarshallingContext</CODE></A> that manages references.
  93. <P>
  94. <P>
  95. <DL>
  96. <DT><B>Since:</B></DT>
  97. <DD>1.4</DD>
  98. <DT><B>Author:</B></DT>
  99. <DD>J&ouml;rg Schaible</DD>
  100. </DL>
  101. <HR>
  102. <P>
  103. <!-- ========== METHOD SUMMARY =========== -->
  104. <A NAME="method_summary"><!-- --></A>
  105. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  106. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  107. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  108. <B>Method Summary</B></FONT></TH>
  109. </TR>
  110. <TR BGCOLOR="white" CLASS="TableRowColor">
  111. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  112. <CODE>&nbsp;<A HREF="../../../../com/thoughtworks/xstream/io/path/Path.html" title="class in com.thoughtworks.xstream.io.path">Path</A></CODE></FONT></TD>
  113. <TD><CODE><B><A HREF="../../../../com/thoughtworks/xstream/core/ReferencingMarshallingContext.html#currentPath()">currentPath</A></B>()</CODE>
  114. <BR>
  115. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieve the current path.</TD>
  116. </TR>
  117. <TR BGCOLOR="white" CLASS="TableRowColor">
  118. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  119. <CODE>&nbsp;<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></CODE></FONT></TD>
  120. <TD><CODE><B><A HREF="../../../../com/thoughtworks/xstream/core/ReferencingMarshallingContext.html#lookupReference(java.lang.Object)">lookupReference</A></B>(<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>&nbsp;item)</CODE>
  121. <BR>
  122. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Request the reference key for the given item</TD>
  123. </TR>
  124. <TR BGCOLOR="white" CLASS="TableRowColor">
  125. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  126. <CODE>&nbsp;void</CODE></FONT></TD>
  127. <TD><CODE><B><A HREF="../../../../com/thoughtworks/xstream/core/ReferencingMarshallingContext.html#registerImplicit(java.lang.Object)">registerImplicit</A></B>(<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>&nbsp;item)</CODE>
  128. <BR>
  129. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Register an implicit element.</TD>
  130. </TR>
  131. <TR BGCOLOR="white" CLASS="TableRowColor">
  132. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  133. <CODE>&nbsp;void</CODE></FONT></TD>
  134. <TD><CODE><B><A HREF="../../../../com/thoughtworks/xstream/core/ReferencingMarshallingContext.html#replace(java.lang.Object, java.lang.Object)">replace</A></B>(<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>&nbsp;original,
  135. <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>&nbsp;replacement)</CODE>
  136. <BR>
  137. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replace the currently marshalled item.</TD>
  138. </TR>
  139. </TABLE>
  140. &nbsp;<A NAME="methods_inherited_from_class_com.thoughtworks.xstream.converters.MarshallingContext"><!-- --></A>
  141. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  142. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  143. <TH ALIGN="left"><B>Methods inherited from interface com.thoughtworks.xstream.converters.<A HREF="../../../../com/thoughtworks/xstream/converters/MarshallingContext.html" title="interface in com.thoughtworks.xstream.converters">MarshallingContext</A></B></TH>
  144. </TR>
  145. <TR BGCOLOR="white" CLASS="TableRowColor">
  146. <TD><CODE><A HREF="../../../../com/thoughtworks/xstream/converters/MarshallingContext.html#convertAnother(java.lang.Object)">convertAnother</A>, <A HREF="../../../../com/thoughtworks/xstream/converters/MarshallingContext.html#convertAnother(java.lang.Object, com.thoughtworks.xstream.converters.Converter)">convertAnother</A></CODE></TD>
  147. </TR>
  148. </TABLE>
  149. &nbsp;<A NAME="methods_inherited_from_class_com.thoughtworks.xstream.converters.DataHolder"><!-- --></A>
  150. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  151. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  152. <TH ALIGN="left"><B>Methods inherited from interface com.thoughtworks.xstream.converters.<A HREF="../../../../com/thoughtworks/xstream/converters/DataHolder.html" title="interface in com.thoughtworks.xstream.converters">DataHolder</A></B></TH>
  153. </TR>
  154. <TR BGCOLOR="white" CLASS="TableRowColor">
  155. <TD><CODE><A HREF="../../../../com/thoughtworks/xstream/converters/DataHolder.html#get(java.lang.Object)">get</A>, <A HREF="../../../../com/thoughtworks/xstream/converters/DataHolder.html#keys()">keys</A>, <A HREF="../../../../com/thoughtworks/xstream/converters/DataHolder.html#put(java.lang.Object, java.lang.Object)">put</A></CODE></TD>
  156. </TR>
  157. </TABLE>
  158. &nbsp;
  159. <P>
  160. <!-- ============ METHOD DETAIL ========== -->
  161. <A NAME="method_detail"><!-- --></A>
  162. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  163. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  164. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  165. <B>Method Detail</B></FONT></TH>
  166. </TR>
  167. </TABLE>
  168. <A NAME="currentPath()"><!-- --></A><H3>
  169. currentPath</H3>
  170. <PRE>
  171. <A HREF="../../../../com/thoughtworks/xstream/io/path/Path.html" title="class in com.thoughtworks.xstream.io.path">Path</A> <B>currentPath</B>()</PRE>
  172. <DL>
  173. <DD>Retrieve the current path.
  174. <P>
  175. <DD><DL>
  176. </DL>
  177. </DD>
  178. <DD><DL>
  179. <DT><B>Returns:</B><DD>the current path<DT><B>Since:</B></DT>
  180. <DD>1.4</DD>
  181. </DL>
  182. </DD>
  183. </DL>
  184. <HR>
  185. <A NAME="lookupReference(java.lang.Object)"><!-- --></A><H3>
  186. lookupReference</H3>
  187. <PRE>
  188. <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>lookupReference</B>(<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>&nbsp;item)</PRE>
  189. <DL>
  190. <DD>Request the reference key for the given item
  191. <P>
  192. <DD><DL>
  193. </DL>
  194. </DD>
  195. <DD><DL>
  196. <DT><B>Parameters:</B><DD><CODE>item</CODE> - the item to lookup
  197. <DT><B>Returns:</B><DD>the reference key or <code>null</code><DT><B>Since:</B></DT>
  198. <DD>1.4</DD>
  199. </DL>
  200. </DD>
  201. </DL>
  202. <HR>
  203. <A NAME="replace(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
  204. replace</H3>
  205. <PRE>
  206. void <B>replace</B>(<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>&nbsp;original,
  207. <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>&nbsp;replacement)</PRE>
  208. <DL>
  209. <DD>Replace the currently marshalled item.
  210. <p><strong>Use this method only, if you know exactly what you do!</strong> It is a special solution for
  211. Serializable types that make usage of the writeReplace method where the replacing object itself is referenced.</p>
  212. <P>
  213. <DD><DL>
  214. </DL>
  215. </DD>
  216. <DD><DL>
  217. <DT><B>Parameters:</B><DD><CODE>original</CODE> - the original item to convert<DD><CODE>replacement</CODE> - the replacement item that is converted instead<DT><B>Since:</B></DT>
  218. <DD>1.4</DD>
  219. </DL>
  220. </DD>
  221. </DL>
  222. <HR>
  223. <A NAME="registerImplicit(java.lang.Object)"><!-- --></A><H3>
  224. registerImplicit</H3>
  225. <PRE>
  226. void <B>registerImplicit</B>(<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>&nbsp;item)</PRE>
  227. <DL>
  228. <DD>Register an implicit element. This is typically some kind of collection.
  229. <P>
  230. <DD><DL>
  231. </DL>
  232. </DD>
  233. <DD><DL>
  234. <DT><B>Parameters:</B><DD><CODE>item</CODE> - the object that is implicit<DT><B>Since:</B></DT>
  235. <DD>1.4</DD>
  236. </DL>
  237. </DD>
  238. </DL>
  239. <!-- ========= END OF CLASS DATA ========= -->
  240. <HR>
  241. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  242. <A NAME="navbar_bottom"><!-- --></A>
  243. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  244. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  245. <TR>
  246. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  247. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  248. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  249. <TR ALIGN="center" VALIGN="top">
  250. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  251. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  252. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  253. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ReferencingMarshallingContext.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  254. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  255. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  256. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  257. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  258. </TR>
  259. </TABLE>
  260. </TD>
  261. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  262. </EM>
  263. </TD>
  264. </TR>
  265. <TR>
  266. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  267. &nbsp;<A HREF="../../../../com/thoughtworks/xstream/core/ReferenceByXPathUnmarshaller.html" title="class in com.thoughtworks.xstream.core"><B>PREV CLASS</B></A>&nbsp;
  268. &nbsp;<A HREF="../../../../com/thoughtworks/xstream/core/SequenceGenerator.html" title="class in com.thoughtworks.xstream.core"><B>NEXT CLASS</B></A></FONT></TD>
  269. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  270. <A HREF="../../../../index.html?com/thoughtworks/xstream/core/ReferencingMarshallingContext.html" target="_top"><B>FRAMES</B></A> &nbsp;
  271. &nbsp;<A HREF="ReferencingMarshallingContext.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  272. &nbsp;<SCRIPT type="text/javascript">
  273. <!--
  274. if(window==top) {
  275. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  276. }
  277. //-->
  278. </SCRIPT>
  279. <NOSCRIPT>
  280. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  281. </NOSCRIPT>
  282. </FONT></TD>
  283. </TR>
  284. <TR>
  285. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  286. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  287. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  288. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  289. </TR>
  290. </TABLE>
  291. <A NAME="skip-navbar_bottom"></A>
  292. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  293. <HR>
  294. Copyright &#169; 2004-2011 <a href="http://xstream.codehaus.org">XStream</a>. All Rights Reserved.
  295. </BODY>
  296. </HTML>