Debian Codegraph @

docs/apiDocs/org/apache/axis/encoding/Deserializer.html

raw
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.4.2_08) on Sat Apr 22 18:57:19 PDT 2006 -->
6 <TITLE>
7 Deserializer (Axis API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.apache.axis.encoding.Deserializer interface">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="Deserializer (Axis API)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Deserializer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 </EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;<A HREF="../../../../org/apache/axis/encoding/Callback.html" title="interface in org.apache.axis.encoding"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../../org/apache/axis/encoding/DeserializerFactory.html" title="interface in org.apache.axis.encoding"><B>NEXT CLASS</B></A></FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="Deserializer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 org.apache.axis.encoding</FONT>
86 <BR>
87 Interface Deserializer</H2>
88 <DL>
89 <DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../org/apache/axis/encoding/Callback.html" title="interface in org.apache.axis.encoding">Callback</A>, <A HREF="../../../../javax/xml/rpc/encoding/Deserializer.html" title="interface in javax.xml.rpc.encoding">Deserializer</A>, java.io.Serializable</DD>
90 </DL>
91 <DL>
92 <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/axis/encoding/ser/castor/CastorDeserializer.html" title="class in org.apache.axis.encoding.ser.castor">CastorDeserializer</A>, <A HREF="../../../../org/apache/axis/encoding/ser/castor/CastorEnumTypeDeserializer.html" title="class in org.apache.axis.encoding.ser.castor">CastorEnumTypeDeserializer</A>, <A HREF="../../../../org/apache/axis/encoding/DeserializerImpl.html" title="class in org.apache.axis.encoding">DeserializerImpl</A></DD>
93 </DL>
94 <HR>
95 <DL>
96 <DT>public interface <B>Deserializer</B><DT>extends <A HREF="../../../../javax/xml/rpc/encoding/Deserializer.html" title="interface in javax.xml.rpc.encoding">Deserializer</A>, <A HREF="../../../../org/apache/axis/encoding/Callback.html" title="interface in org.apache.axis.encoding">Callback</A></DL>
97
98 <P>
99 This interface describes the AXIS Deserializer.
100 A compliant implementiation must extend either
101 the AXIS SoapHandler (org.apache.axis.message.SOAPHandler)
102 or the AXIS DeserializerImpl (org.apache.axis.encoding.DeserializerImpl)
103
104 The DeserializerImpl provides a lot of the default behavior including the
105 support for id/href. So you may want to try extending it as opposed to
106 extending SoapHandler.
107
108 An Axis compliant Deserializer must provide one or more
109 of the following methods:
110
111 public &lt;constructor&gt;(Class javaType, QName xmlType)
112 public &lt;constructo&gt;()
113
114 This will allow for construction of generic factories that introspect the class
115 to determine how to construct a deserializer.
116 The xmlType, javaType arguments are filled in with the values known by the factory.
117 <P>
118
119 <P>
120 <HR>
121
122 <P>
123 <!-- ======== NESTED CLASS SUMMARY ======== -->
124
125
126 <!-- =========== FIELD SUMMARY =========== -->
127
128
129 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
130
131
132 <!-- ========== METHOD SUMMARY =========== -->
133
134 <A NAME="method_summary"><!-- --></A>
135 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137 <TD COLSPAN=2><FONT SIZE="+2">
138 <B>Method Summary</B></FONT></TD>
139 </TR>
140 <TR BGCOLOR="white" CLASS="TableRowColor">
141 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142 <CODE>&nbsp;boolean</CODE></FONT></TD>
143 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#componentsReady()">componentsReady</A></B>()</CODE>
144
145 <BR>
146 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Some deserializers (ArrayDeserializer) require
147 all of the component values to be known before the
148 value is complete.</TD>
149 </TR>
150 <TR BGCOLOR="white" CLASS="TableRowColor">
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
152 <CODE>&nbsp;void</CODE></FONT></TD>
153 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#endElement(java.lang.String, java.lang.String, org.apache.axis.encoding.DeserializationContext)">endElement</A></B>(java.lang.String&nbsp;namespace,
154 java.lang.String&nbsp;localName,
155 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)</CODE>
156
157 <BR>
158 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;endElement is called when the end element tag is reached.</TD>
159 </TR>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE>&nbsp;<A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A></CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#getDefaultType()">getDefaultType</A></B>()</CODE>
164
165 <BR>
166 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
167 </TR>
168 <TR BGCOLOR="white" CLASS="TableRowColor">
169 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
170 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
171 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#getValue()">getValue</A></B>()</CODE>
172
173 <BR>
174 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the deserialized value.</TD>
175 </TR>
176 <TR BGCOLOR="white" CLASS="TableRowColor">
177 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
178 <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
179 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#getValue(java.lang.Object)">getValue</A></B>(java.lang.Object&nbsp;hint)</CODE>
180
181 <BR>
182 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the deserializer has component values (like ArrayDeserializer)
183 this method gets the specific component via the hint.</TD>
184 </TR>
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <CODE>&nbsp;java.util.Vector</CODE></FONT></TD>
188 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#getValueTargets()">getValueTargets</A></B>()</CODE>
189
190 <BR>
191 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the Value Targets of the Deserializer.</TD>
192 </TR>
193 <TR BGCOLOR="white" CLASS="TableRowColor">
194 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
195 <CODE>&nbsp;void</CODE></FONT></TD>
196 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#moveValueTargets(org.apache.axis.encoding.Deserializer)">moveValueTargets</A></B>(<A HREF="../../../../org/apache/axis/encoding/Deserializer.html" title="interface in org.apache.axis.encoding">Deserializer</A>&nbsp;other)</CODE>
197
198 <BR>
199 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Move someone else's targets to our own (see DeserializationContext)
200
201 The DeserializationContext only allows one Deserializer to
202 wait for a unknown multi-ref'ed value.</TD>
203 </TR>
204 <TR BGCOLOR="white" CLASS="TableRowColor">
205 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206 <CODE>&nbsp;void</CODE></FONT></TD>
207 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#onEndElement(java.lang.String, java.lang.String, org.apache.axis.encoding.DeserializationContext)">onEndElement</A></B>(java.lang.String&nbsp;namespace,
208 java.lang.String&nbsp;localName,
209 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)</CODE>
210
211 <BR>
212 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onEndElement is called by endElement.</TD>
213 </TR>
214 <TR BGCOLOR="white" CLASS="TableRowColor">
215 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
216 <CODE>&nbsp;<A HREF="../../../../org/apache/axis/message/SOAPHandler.html" title="class in org.apache.axis.message">SOAPHandler</A></CODE></FONT></TD>
217 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#onStartChild(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes, org.apache.axis.encoding.DeserializationContext)">onStartChild</A></B>(java.lang.String&nbsp;namespace,
218 java.lang.String&nbsp;localName,
219 java.lang.String&nbsp;prefix,
220 org.xml.sax.Attributes&nbsp;attributes,
221 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)</CODE>
222
223 <BR>
224 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;onStartChild is called on each child element.</TD>
225 </TR>
226 <TR BGCOLOR="white" CLASS="TableRowColor">
227 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
228 <CODE>&nbsp;void</CODE></FONT></TD>
229 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#onStartElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes, org.apache.axis.encoding.DeserializationContext)">onStartElement</A></B>(java.lang.String&nbsp;namespace,
230 java.lang.String&nbsp;localName,
231 java.lang.String&nbsp;prefix,
232 org.xml.sax.Attributes&nbsp;attributes,
233 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)</CODE>
234
235 <BR>
236 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is invoked after startElement when the element requires
237 deserialization (i.e.</TD>
238 </TR>
239 <TR BGCOLOR="white" CLASS="TableRowColor">
240 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241 <CODE>&nbsp;void</CODE></FONT></TD>
242 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#registerValueTarget(org.apache.axis.encoding.Target)">registerValueTarget</A></B>(<A HREF="../../../../org/apache/axis/encoding/Target.html" title="interface in org.apache.axis.encoding">Target</A>&nbsp;target)</CODE>
243
244 <BR>
245 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;For deserializers of non-primitives, the value may not be
246 known until later (due to multi-referencing).</TD>
247 </TR>
248 <TR BGCOLOR="white" CLASS="TableRowColor">
249 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
250 <CODE>&nbsp;void</CODE></FONT></TD>
251 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#removeValueTargets()">removeValueTargets</A></B>()</CODE>
252
253 <BR>
254 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the Value Targets of the Deserializer.</TD>
255 </TR>
256 <TR BGCOLOR="white" CLASS="TableRowColor">
257 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258 <CODE>&nbsp;void</CODE></FONT></TD>
259 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#setChildValue(java.lang.Object, java.lang.Object)">setChildValue</A></B>(java.lang.Object&nbsp;value,
260 java.lang.Object&nbsp;hint)</CODE>
261
262 <BR>
263 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If the deserializer has component values (like ArrayDeserializer)
264 this method sets the specific component via the hint.</TD>
265 </TR>
266 <TR BGCOLOR="white" CLASS="TableRowColor">
267 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268 <CODE>&nbsp;void</CODE></FONT></TD>
269 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#setDefaultType(javax.xml.namespace.QName)">setDefaultType</A></B>(<A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A>&nbsp;qName)</CODE>
270
271 <BR>
272 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;In some circumstances an element may not have
273 a type attribute, but a default type qname is known from
274 information in the container.</TD>
275 </TR>
276 <TR BGCOLOR="white" CLASS="TableRowColor">
277 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278 <CODE>&nbsp;void</CODE></FONT></TD>
279 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#setValue(java.lang.Object)">setValue</A></B>(java.lang.Object&nbsp;value)</CODE>
280
281 <BR>
282 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the deserialized value.</TD>
283 </TR>
284 <TR BGCOLOR="white" CLASS="TableRowColor">
285 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
286 <CODE>&nbsp;void</CODE></FONT></TD>
287 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes, org.apache.axis.encoding.DeserializationContext)">startElement</A></B>(java.lang.String&nbsp;namespace,
288 java.lang.String&nbsp;localName,
289 java.lang.String&nbsp;qName,
290 org.xml.sax.Attributes&nbsp;attributes,
291 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)</CODE>
292
293 <BR>
294 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is invoked when an element start tag is encountered.</TD>
295 </TR>
296 <TR BGCOLOR="white" CLASS="TableRowColor">
297 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298 <CODE>&nbsp;void</CODE></FONT></TD>
299 <TD><CODE><B><A HREF="../../../../org/apache/axis/encoding/Deserializer.html#valueComplete()">valueComplete</A></B>()</CODE>
300
301 <BR>
302 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The valueComplete() method is invoked when the
303 end tag of the element is read.</TD>
304 </TR>
305 </TABLE>
306 &nbsp;<A NAME="methods_inherited_from_class_javax.xml.rpc.encoding.Deserializer"><!-- --></A>
307 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
308 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
309 <TD><B>Methods inherited from interface javax.xml.rpc.encoding.<A HREF="../../../../javax/xml/rpc/encoding/Deserializer.html" title="interface in javax.xml.rpc.encoding">Deserializer</A></B></TD>
310 </TR>
311 <TR BGCOLOR="white" CLASS="TableRowColor">
312 <TD><CODE><A HREF="../../../../javax/xml/rpc/encoding/Deserializer.html#getMechanismType()">getMechanismType</A></CODE></TD>
313 </TR>
314 </TABLE>
315 &nbsp;<A NAME="methods_inherited_from_class_org.apache.axis.encoding.Callback"><!-- --></A>
316 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
317 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
318 <TD><B>Methods inherited from interface org.apache.axis.encoding.<A HREF="../../../../org/apache/axis/encoding/Callback.html" title="interface in org.apache.axis.encoding">Callback</A></B></TD>
319 </TR>
320 <TR BGCOLOR="white" CLASS="TableRowColor">
321 <TD><CODE><A HREF="../../../../org/apache/axis/encoding/Callback.html#setValue(java.lang.Object, java.lang.Object)">setValue</A></CODE></TD>
322 </TR>
323 </TABLE>
324 &nbsp;
325 <P>
326
327 <!-- ============ FIELD DETAIL =========== -->
328
329
330 <!-- ========= CONSTRUCTOR DETAIL ======== -->
331
332
333 <!-- ============ METHOD DETAIL ========== -->
334
335 <A NAME="method_detail"><!-- --></A>
336 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
337 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
338 <TD COLSPAN=1><FONT SIZE="+2">
339 <B>Method Detail</B></FONT></TD>
340 </TR>
341 </TABLE>
342
343 <A NAME="getValue()"><!-- --></A><H3>
344 getValue</H3>
345 <PRE>
346 public java.lang.Object <B>getValue</B>()</PRE>
347 <DL>
348 <DD>Get the deserialized value.
349 <P>
350 <DD><DL>
351 </DL>
352 </DD>
353 <DD><DL>
354
355 <DT><B>Returns:</B><DD>Object representing deserialized value or null</DL>
356 </DD>
357 </DL>
358 <HR>
359
360 <A NAME="setValue(java.lang.Object)"><!-- --></A><H3>
361 setValue</H3>
362 <PRE>
363 public void <B>setValue</B>(java.lang.Object&nbsp;value)</PRE>
364 <DL>
365 <DD>Set the deserialized value.
366 <P>
367 <DD><DL>
368 </DL>
369 </DD>
370 <DD><DL>
371 <DT><B>Parameters:</B><DD><CODE>value</CODE> - Object representing deserialized value</DL>
372 </DD>
373 </DL>
374 <HR>
375
376 <A NAME="getValue(java.lang.Object)"><!-- --></A><H3>
377 getValue</H3>
378 <PRE>
379 public java.lang.Object <B>getValue</B>(java.lang.Object&nbsp;hint)</PRE>
380 <DL>
381 <DD>If the deserializer has component values (like ArrayDeserializer)
382 this method gets the specific component via the hint.
383 The default implementation returns null.
384 <P>
385 <DD><DL>
386 </DL>
387 </DD>
388 <DD><DL>
389
390 <DT><B>Returns:</B><DD>Object representing deserialized value or null</DL>
391 </DD>
392 </DL>
393 <HR>
394
395 <A NAME="setChildValue(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
396 setChildValue</H3>
397 <PRE>
398 public void <B>setChildValue</B>(java.lang.Object&nbsp;value,
399 java.lang.Object&nbsp;hint)
400 throws org.xml.sax.SAXException</PRE>
401 <DL>
402 <DD>If the deserializer has component values (like ArrayDeserializer)
403 this method sets the specific component via the hint.
404 The default implementation does nothing.
405 <P>
406 <DD><DL>
407 </DL>
408 </DD>
409 <DD><DL>
410 <DT><B>Parameters:</B><DD><CODE>value</CODE> - Object representing deserialized value or null
411 <DT><B>Throws:</B>
412 <DD><CODE>org.xml.sax.SAXException</CODE></DL>
413 </DD>
414 </DL>
415 <HR>
416
417 <A NAME="setDefaultType(javax.xml.namespace.QName)"><!-- --></A><H3>
418 setDefaultType</H3>
419 <PRE>
420 public void <B>setDefaultType</B>(<A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A>&nbsp;qName)</PRE>
421 <DL>
422 <DD>In some circumstances an element may not have
423 a type attribute, but a default type qname is known from
424 information in the container. For example,
425 an element of an array may not have a type= attribute,
426 so the default qname is the component type of the array.
427 This method is used to communicate the default type information
428 to the deserializer.
429 <P>
430 <DD><DL>
431 </DL>
432 </DD>
433 <DD><DL>
434 </DL>
435 </DD>
436 </DL>
437 <HR>
438
439 <A NAME="getDefaultType()"><!-- --></A><H3>
440 getDefaultType</H3>
441 <PRE>
442 public <A HREF="../../../../javax/xml/namespace/QName.html" title="class in javax.xml.namespace">QName</A> <B>getDefaultType</B>()</PRE>
443 <DL>
444 <DD><DL>
445 </DL>
446 </DD>
447 <DD><DL>
448 </DL>
449 </DD>
450 </DL>
451 <HR>
452
453 <A NAME="registerValueTarget(org.apache.axis.encoding.Target)"><!-- --></A><H3>
454 registerValueTarget</H3>
455 <PRE>
456 public void <B>registerValueTarget</B>(<A HREF="../../../../org/apache/axis/encoding/Target.html" title="interface in org.apache.axis.encoding">Target</A>&nbsp;target)</PRE>
457 <DL>
458 <DD>For deserializers of non-primitives, the value may not be
459 known until later (due to multi-referencing). In such
460 cases the deserializer registers Target object(s). When
461 the value is known, the set(value) will be invoked for
462 each Target registered with the Deserializer. The Target
463 object abstracts the function of setting a target with a
464 value. See the Target interface for more info.
465 <P>
466 <DD><DL>
467 </DL>
468 </DD>
469 <DD><DL>
470 <DT><B>Parameters:</B><DD><CODE>target</CODE> - Target</DL>
471 </DD>
472 </DL>
473 <HR>
474
475 <A NAME="getValueTargets()"><!-- --></A><H3>
476 getValueTargets</H3>
477 <PRE>
478 public java.util.Vector <B>getValueTargets</B>()</PRE>
479 <DL>
480 <DD>Get the Value Targets of the Deserializer.
481 <P>
482 <DD><DL>
483 </DL>
484 </DD>
485 <DD><DL>
486
487 <DT><B>Returns:</B><DD>Vector of Target objects or null</DL>
488 </DD>
489 </DL>
490 <HR>
491
492 <A NAME="removeValueTargets()"><!-- --></A><H3>
493 removeValueTargets</H3>
494 <PRE>
495 public void <B>removeValueTargets</B>()</PRE>
496 <DL>
497 <DD>Remove the Value Targets of the Deserializer.
498 <P>
499 <DD><DL>
500 </DL>
501 </DD>
502 <DD><DL>
503 </DL>
504 </DD>
505 </DL>
506 <HR>
507
508 <A NAME="moveValueTargets(org.apache.axis.encoding.Deserializer)"><!-- --></A><H3>
509 moveValueTargets</H3>
510 <PRE>
511 public void <B>moveValueTargets</B>(<A HREF="../../../../org/apache/axis/encoding/Deserializer.html" title="interface in org.apache.axis.encoding">Deserializer</A>&nbsp;other)</PRE>
512 <DL>
513 <DD>Move someone else's targets to our own (see DeserializationContext)
514
515 The DeserializationContext only allows one Deserializer to
516 wait for a unknown multi-ref'ed value. So to ensure
517 that all of the targets are updated, this method is invoked
518 to copy the Target objects to the waiting Deserializer.
519 <P>
520 <DD><DL>
521 </DL>
522 </DD>
523 <DD><DL>
524 <DT><B>Parameters:</B><DD><CODE>other</CODE> - is the Deserializer to copy targets from.</DL>
525 </DD>
526 </DL>
527 <HR>
528
529 <A NAME="componentsReady()"><!-- --></A><H3>
530 componentsReady</H3>
531 <PRE>
532 public boolean <B>componentsReady</B>()</PRE>
533 <DL>
534 <DD>Some deserializers (ArrayDeserializer) require
535 all of the component values to be known before the
536 value is complete.
537 (For the ArrayDeserializer this is important because
538 the elements are stored in an ArrayList, and all values
539 must be known before the ArrayList is converted into the
540 expected array.
541
542 This routine is used to indicate when the components are ready.
543 The default (true) is useful for most Deserializers.
544 <P>
545 <DD><DL>
546 </DL>
547 </DD>
548 <DD><DL>
549 </DL>
550 </DD>
551 </DL>
552 <HR>
553
554 <A NAME="valueComplete()"><!-- --></A><H3>
555 valueComplete</H3>
556 <PRE>
557 public void <B>valueComplete</B>()
558 throws org.xml.sax.SAXException</PRE>
559 <DL>
560 <DD>The valueComplete() method is invoked when the
561 end tag of the element is read. This results
562 in the setting of all registered Targets (see
563 registerValueTarget).
564 Note that the valueComplete() only processes
565 the Targets if componentReady() returns true.
566 So if you override componentReady(), then your
567 specific Deserializer will need to call valueComplete()
568 when your components are ready (See ArrayDeserializer)
569 <P>
570 <DD><DL>
571 </DL>
572 </DD>
573 <DD><DL>
574
575 <DT><B>Throws:</B>
576 <DD><CODE>org.xml.sax.SAXException</CODE></DL>
577 </DD>
578 </DL>
579 <HR>
580
581 <A NAME="startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes, org.apache.axis.encoding.DeserializationContext)"><!-- --></A><H3>
582 startElement</H3>
583 <PRE>
584 public void <B>startElement</B>(java.lang.String&nbsp;namespace,
585 java.lang.String&nbsp;localName,
586 java.lang.String&nbsp;qName,
587 org.xml.sax.Attributes&nbsp;attributes,
588 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)
589 throws org.xml.sax.SAXException</PRE>
590 <DL>
591 <DD>This method is invoked when an element start tag is encountered.
592 DeserializerImpl provides default behavior, which involves the following:
593 - directly handling the deserialization of a nill value
594 - handling the registration of the id value.
595 - handling the registration of a fixup if this element is an href.
596 - calling onStartElement to do the actual deserialization if not nill or href cases.
597 <P>
598 <DD><DL>
599 </DL>
600 </DD>
601 <DD><DL>
602 <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - is the namespace of the element<DD><CODE>localName</CODE> - is the name of the element<DD><CODE>qName</CODE> - is the prefixed qName of the element<DD><CODE>attributes</CODE> - are the attributes on the element...used to get the type<DD><CODE>context</CODE> - is the DeserializationContext
603
604 Normally a specific Deserializer (FooDeserializer) should extend DeserializerImpl.
605 Here is the flow that will occur in such cases:
606 1) DeserializerImpl.startElement(...) will be called and do the id/href/nill stuff.
607 2) If real deserialization needs to take place DeserializerImpl.onStartElement will be
608 invoked, which will attempt to install the specific Deserializer (FooDeserializer)
609 3) The FooDeserializer.startElement(...) will be called to do the Foo specific stuff.
610 This results in a call to FooDeserializer.onStartElement(...) if startElement was
611 not overridden.
612 4) The onChildElement(...) method is called for each child element. Nothing occurs
613 if not overridden. The FooDeserializer.onStartChild(...) method should return
614 the deserializer for the child element.
615 5) When the end tag is reached, the endElement(..) method is invoked. The default
616 behavior is to handle hrefs/ids, call onEndElement and then call the Deserializer
617 valueComplete method.
618
619 So the methods that you potentially want to override are:
620 onStartElement, onStartChild, componentsReady, set(object, hint)
621
622 You probably should not override startElement or endElement.
623 If you need specific behaviour at the end of the element consider overriding
624 onEndElement.
625
626 See the pre-existing Deserializers for more information.
627 <DT><B>Throws:</B>
628 <DD><CODE>org.xml.sax.SAXException</CODE></DL>
629 </DD>
630 </DL>
631 <HR>
632
633 <A NAME="onStartElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes, org.apache.axis.encoding.DeserializationContext)"><!-- --></A><H3>
634 onStartElement</H3>
635 <PRE>
636 public void <B>onStartElement</B>(java.lang.String&nbsp;namespace,
637 java.lang.String&nbsp;localName,
638 java.lang.String&nbsp;prefix,
639 org.xml.sax.Attributes&nbsp;attributes,
640 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)
641 throws org.xml.sax.SAXException</PRE>
642 <DL>
643 <DD>This method is invoked after startElement when the element requires
644 deserialization (i.e. the element is not an href and the value is not nil.)
645 DeserializerImpl provides default behavior, which simply
646 involves obtaining a correct Deserializer and plugging its handler.
647 <P>
648 <DD><DL>
649 </DL>
650 </DD>
651 <DD><DL>
652 <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - is the namespace of the element<DD><CODE>localName</CODE> - is the name of the element<DD><CODE>prefix</CODE> - is the prefix of the element<DD><CODE>attributes</CODE> - are the attributes on the element...used to get the type<DD><CODE>context</CODE> - is the DeserializationContext
653 <DT><B>Throws:</B>
654 <DD><CODE>org.xml.sax.SAXException</CODE></DL>
655 </DD>
656 </DL>
657 <HR>
658
659 <A NAME="onStartChild(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes, org.apache.axis.encoding.DeserializationContext)"><!-- --></A><H3>
660 onStartChild</H3>
661 <PRE>
662 public <A HREF="../../../../org/apache/axis/message/SOAPHandler.html" title="class in org.apache.axis.message">SOAPHandler</A> <B>onStartChild</B>(java.lang.String&nbsp;namespace,
663 java.lang.String&nbsp;localName,
664 java.lang.String&nbsp;prefix,
665 org.xml.sax.Attributes&nbsp;attributes,
666 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)
667 throws org.xml.sax.SAXException</PRE>
668 <DL>
669 <DD>onStartChild is called on each child element.
670 The default behavior supplied by DeserializationImpl is to do nothing.
671 A specific deserializer may perform other tasks. For example a
672 BeanDeserializer will construct a deserializer for the indicated
673 property and return it.
674 <P>
675 <DD><DL>
676 </DL>
677 </DD>
678 <DD><DL>
679 <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - is the namespace of the child element<DD><CODE>localName</CODE> - is the local name of the child element<DD><CODE>prefix</CODE> - is the prefix used on the name of the child element<DD><CODE>attributes</CODE> - are the attributes of the child element<DD><CODE>context</CODE> - is the deserialization context.
680 <DT><B>Returns:</B><DD>is a Deserializer to use to deserialize a child (must be
681 a derived class of SOAPHandler) or null if no deserialization should
682 be performed.
683 <DT><B>Throws:</B>
684 <DD><CODE>org.xml.sax.SAXException</CODE></DL>
685 </DD>
686 </DL>
687 <HR>
688
689 <A NAME="endElement(java.lang.String, java.lang.String, org.apache.axis.encoding.DeserializationContext)"><!-- --></A><H3>
690 endElement</H3>
691 <PRE>
692 public void <B>endElement</B>(java.lang.String&nbsp;namespace,
693 java.lang.String&nbsp;localName,
694 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)
695 throws org.xml.sax.SAXException</PRE>
696 <DL>
697 <DD>endElement is called when the end element tag is reached.
698 It handles href/id information for multi-ref processing
699 and invokes the valueComplete() method of the deserializer
700 which sets the targets with the deserialized value.
701 <P>
702 <DD><DL>
703 </DL>
704 </DD>
705 <DD><DL>
706 <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - is the namespace of the child element<DD><CODE>localName</CODE> - is the local name of the child element<DD><CODE>context</CODE> - is the deserialization context
707 <DT><B>Throws:</B>
708 <DD><CODE>org.xml.sax.SAXException</CODE></DL>
709 </DD>
710 </DL>
711 <HR>
712
713 <A NAME="onEndElement(java.lang.String, java.lang.String, org.apache.axis.encoding.DeserializationContext)"><!-- --></A><H3>
714 onEndElement</H3>
715 <PRE>
716 public void <B>onEndElement</B>(java.lang.String&nbsp;namespace,
717 java.lang.String&nbsp;localName,
718 <A HREF="../../../../org/apache/axis/encoding/DeserializationContext.html" title="class in org.apache.axis.encoding">DeserializationContext</A>&nbsp;context)
719 throws org.xml.sax.SAXException</PRE>
720 <DL>
721 <DD>onEndElement is called by endElement. It is not called
722 if the element has an href.
723 <P>
724 <DD><DL>
725 </DL>
726 </DD>
727 <DD><DL>
728 <DT><B>Parameters:</B><DD><CODE>namespace</CODE> - is the namespace of the child element<DD><CODE>localName</CODE> - is the local name of the child element<DD><CODE>context</CODE> - is the deserialization context
729 <DT><B>Throws:</B>
730 <DD><CODE>org.xml.sax.SAXException</CODE></DL>
731 </DD>
732 </DL>
733 <!-- ========= END OF CLASS DATA ========= -->
734 <HR>
735
736
737 <!-- ======= START OF BOTTOM NAVBAR ====== -->
738 <A NAME="navbar_bottom"><!-- --></A>
739 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
740 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
741 <TR>
742 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
743 <A NAME="navbar_bottom_firstrow"><!-- --></A>
744 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
745 <TR ALIGN="center" VALIGN="top">
746 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
747 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
748 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
749 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Deserializer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
750 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
751 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
752 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
753 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
754 </TR>
755 </TABLE>
756 </TD>
757 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
758 </EM>
759 </TD>
760 </TR>
761
762 <TR>
763 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
764 &nbsp;<A HREF="../../../../org/apache/axis/encoding/Callback.html" title="interface in org.apache.axis.encoding"><B>PREV CLASS</B></A>&nbsp;
765 &nbsp;<A HREF="../../../../org/apache/axis/encoding/DeserializerFactory.html" title="interface in org.apache.axis.encoding"><B>NEXT CLASS</B></A></FONT></TD>
766 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
767 <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
768 &nbsp;<A HREF="Deserializer.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
769 &nbsp;<SCRIPT type="text/javascript">
770 <!--
771 if(window==top) {
772 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
773 }
774 //-->
775 </SCRIPT>
776 <NOSCRIPT>
777 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
778 </NOSCRIPT>
779
780 </FONT></TD>
781 </TR>
782 <TR>
783 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
784 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
785 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
786 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
787 </TR>
788 </TABLE>
789 <A NAME="skip-navbar_bottom"></A>
790 <!-- ======== END OF BOTTOM NAVBAR ======= -->
791
792 <HR>
793 Copyright © 2005 Apache Web Services Project. All Rights Reserved.
794 </BODY>
795 </HTML>