1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_03) on Fri Jan 25 23:29:23 CET 2008 -->
<TITLE>
IMarshallingContext (JiBX Java data binding to XML - Version 1.0)
</TITLE>
<META NAME="date" CONTENT="2008-01-25">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="IMarshallingContext (JiBX Java data binding to XML - Version 1.0)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<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="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../org/jibx/runtime/IMarshaller.html" title="interface in org.jibx.runtime"><B>PREV CLASS</B></A>
<A HREF="../../../org/jibx/runtime/ITrackSource.html" title="interface in org.jibx.runtime"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/jibx/runtime/IMarshallingContext.html" target="_top"><B>FRAMES</B></A>
<A HREF="IMarshallingContext.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.jibx.runtime</FONT>
<BR>
Interface IMarshallingContext</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/jibx/runtime/impl/MarshallingContext.html" title="class in org.jibx.runtime.impl">MarshallingContext</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>IMarshallingContext</B></DL>
</PRE>
<P>
User interface for serializer to XML. This provides methods used to set up
and control the marshalling process, as well as access to the marshalling
object stack while marshalling.
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>1.0</DD>
<DT><B>Author:</B></DT>
<DD>Dennis M. Sosnoski</DD>
</DL>
<HR>
<P>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#endDocument()">endDocument</A></B>()</CODE>
<BR>
End document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#getIndent()">getIndent</A></B>()</CODE>
<BR>
Get current nesting indent spaces.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jibx/runtime/IMarshaller.html" title="interface in org.jibx.runtime">IMarshaller</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#getMarshaller(int, java.lang.String)">getMarshaller</A></B>(int index,
java.lang.String name)</CODE>
<BR>
Find the marshaller for a particular class index
in the current context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#getStackDepth()">getStackDepth</A></B>()</CODE>
<BR>
Get current marshalling object stack depth.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#getStackObject(int)">getStackObject</A></B>(int depth)</CODE>
<BR>
Get object from marshalling stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#getStackTop()">getStackTop</A></B>()</CODE>
<BR>
Get top object on marshalling stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../org/jibx/runtime/IXMLWriter.html" title="interface in org.jibx.runtime">IXMLWriter</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#getXmlWriter()">getXmlWriter</A></B>()</CODE>
<BR>
Get the writer being used for output.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#marshalDocument(java.lang.Object)">marshalDocument</A></B>(java.lang.Object root)</CODE>
<BR>
Marshal document from root object without XML declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#marshalDocument(java.lang.Object, java.lang.String, java.lang.Boolean)">marshalDocument</A></B>(java.lang.Object root,
java.lang.String enc,
java.lang.Boolean alone)</CODE>
<BR>
Marshal document from root object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#marshalDocument(java.lang.Object, java.lang.String, java.lang.Boolean, java.io.OutputStream)">marshalDocument</A></B>(java.lang.Object root,
java.lang.String enc,
java.lang.Boolean alone,
java.io.OutputStream outs)</CODE>
<BR>
Marshal document from root object to output stream with encoding.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#marshalDocument(java.lang.Object, java.lang.String, java.lang.Boolean, java.io.Writer)">marshalDocument</A></B>(java.lang.Object root,
java.lang.String enc,
java.lang.Boolean alone,
java.io.Writer outw)</CODE>
<BR>
Marshal document from root object to writer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#popObject()">popObject</A></B>()</CODE>
<BR>
Pop marshalled object from stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#pushObject(java.lang.Object)">pushObject</A></B>(java.lang.Object obj)</CODE>
<BR>
Push created object to marshalling stack.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#reset()">reset</A></B>()</CODE>
<BR>
Reset to initial state for reuse.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#setIndent(int)">setIndent</A></B>(int count)</CODE>
<BR>
Set nesting indent spaces.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#setIndent(int, java.lang.String, char)">setIndent</A></B>(int count,
java.lang.String newline,
char indent)</CODE>
<BR>
Set nesting indentation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#setOutput(java.io.OutputStream, java.lang.String)">setOutput</A></B>(java.io.OutputStream outs,
java.lang.String enc)</CODE>
<BR>
Set output stream and encoding.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#setOutput(java.io.OutputStream, java.lang.String, org.jibx.runtime.ICharacterEscaper)">setOutput</A></B>(java.io.OutputStream outs,
java.lang.String enc,
<A HREF="../../../org/jibx/runtime/ICharacterEscaper.html" title="interface in org.jibx.runtime">ICharacterEscaper</A> esc)</CODE>
<BR>
Set output stream with encoding and escaper.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#setOutput(java.io.Writer)">setOutput</A></B>(java.io.Writer outw)</CODE>
<BR>
Set output writer.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#setOutput(java.io.Writer, org.jibx.runtime.ICharacterEscaper)">setOutput</A></B>(java.io.Writer outw,
<A HREF="../../../org/jibx/runtime/ICharacterEscaper.html" title="interface in org.jibx.runtime">ICharacterEscaper</A> esc)</CODE>
<BR>
Set output writer and escaper.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#setXmlWriter(org.jibx.runtime.IXMLWriter)">setXmlWriter</A></B>(<A HREF="../../../org/jibx/runtime/IXMLWriter.html" title="interface in org.jibx.runtime">IXMLWriter</A> xwrite)</CODE>
<BR>
Set the writer being used for output.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#startDocument(java.lang.String, java.lang.Boolean)">startDocument</A></B>(java.lang.String enc,
java.lang.Boolean alone)</CODE>
<BR>
Start document, writing the XML declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#startDocument(java.lang.String, java.lang.Boolean, java.io.OutputStream)">startDocument</A></B>(java.lang.String enc,
java.lang.Boolean alone,
java.io.OutputStream outs)</CODE>
<BR>
Start document with output stream and encoding.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IMarshallingContext.html#startDocument(java.lang.String, java.lang.Boolean, java.io.Writer)">startDocument</A></B>(java.lang.String enc,
java.lang.Boolean alone,
java.io.Writer outw)</CODE>
<BR>
Start document with writer.</TD>
</TR>
</TABLE>
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="setOutput(java.io.OutputStream, java.lang.String, org.jibx.runtime.ICharacterEscaper)"><!-- --></A><H3>
setOutput</H3>
<PRE>
void <B>setOutput</B>(java.io.OutputStream outs,
java.lang.String enc,
<A HREF="../../../org/jibx/runtime/ICharacterEscaper.html" title="interface in org.jibx.runtime">ICharacterEscaper</A> esc)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Set output stream with encoding and escaper. This forces handling of the
output stream to use the Java character encoding support with the
supplied escaper.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>outs</CODE> - stream for document data output<DD><CODE>enc</CODE> - document output encoding, or <code>null</code> uses UTF-8
default<DD><CODE>esc</CODE> - escaper for writing characters to stream
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - if error setting output</DL>
</DD>
</DL>
<HR>
<A NAME="setOutput(java.io.OutputStream, java.lang.String)"><!-- --></A><H3>
setOutput</H3>
<PRE>
void <B>setOutput</B>(java.io.OutputStream outs,
java.lang.String enc)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Set output stream and encoding.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>outs</CODE> - stream for document data output<DD><CODE>enc</CODE> - document output encoding, or <code>null</code> uses UTF-8
default
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - if error setting output</DL>
</DD>
</DL>
<HR>
<A NAME="setOutput(java.io.Writer, org.jibx.runtime.ICharacterEscaper)"><!-- --></A><H3>
setOutput</H3>
<PRE>
void <B>setOutput</B>(java.io.Writer outw,
<A HREF="../../../org/jibx/runtime/ICharacterEscaper.html" title="interface in org.jibx.runtime">ICharacterEscaper</A> esc)</PRE>
<DL>
<DD>Set output writer and escaper.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>outw</CODE> - writer for document data output<DD><CODE>esc</CODE> - escaper for writing characters</DL>
</DD>
</DL>
<HR>
<A NAME="setOutput(java.io.Writer)"><!-- --></A><H3>
setOutput</H3>
<PRE>
void <B>setOutput</B>(java.io.Writer outw)</PRE>
<DL>
<DD>Set output writer. This assumes the standard UTF-8 encoding.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>outw</CODE> - writer for document data output</DL>
</DD>
</DL>
<HR>
<A NAME="getXmlWriter()"><!-- --></A><H3>
getXmlWriter</H3>
<PRE>
<A HREF="../../../org/jibx/runtime/IXMLWriter.html" title="interface in org.jibx.runtime">IXMLWriter</A> <B>getXmlWriter</B>()</PRE>
<DL>
<DD>Get the writer being used for output.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>XML writer used for output</DL>
</DD>
</DL>
<HR>
<A NAME="setXmlWriter(org.jibx.runtime.IXMLWriter)"><!-- --></A><H3>
setXmlWriter</H3>
<PRE>
void <B>setXmlWriter</B>(<A HREF="../../../org/jibx/runtime/IXMLWriter.html" title="interface in org.jibx.runtime">IXMLWriter</A> xwrite)</PRE>
<DL>
<DD>Set the writer being used for output.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>xwrite</CODE> - XML writer used for output</DL>
</DD>
</DL>
<HR>
<A NAME="getIndent()"><!-- --></A><H3>
getIndent</H3>
<PRE>
int <B>getIndent</B>()</PRE>
<DL>
<DD>Get current nesting indent spaces. This returns the number of spaces used
to show indenting, if used.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>number of spaces indented per level, or negative if indentation
disabled</DL>
</DD>
</DL>
<HR>
<A NAME="setIndent(int)"><!-- --></A><H3>
setIndent</H3>
<PRE>
void <B>setIndent</B>(int count)</PRE>
<DL>
<DD>Set nesting indent spaces. This is advisory only, and implementations of
this interface are free to ignore it. The intent is to indicate that the
generated output should use indenting to illustrate element nesting.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>count</CODE> - number of spaces to indent per level, or disable
indentation if negative</DL>
</DD>
</DL>
<HR>
<A NAME="setIndent(int, java.lang.String, char)"><!-- --></A><H3>
setIndent</H3>
<PRE>
void <B>setIndent</B>(int count,
java.lang.String newline,
char indent)</PRE>
<DL>
<DD>Set nesting indentation. This is advisory only, and implementations of
this interface are free to ignore it. The intent is to indicate that the
generated output should use indenting to illustrate element nesting.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>count</CODE> - number of character to indent per level, or disable
indentation if negative (zero means new line only)<DD><CODE>newline</CODE> - sequence of characters used for a line ending
(<code>null</code> means use the single character '\n')<DD><CODE>indent</CODE> - whitespace character used for indentation</DL>
</DD>
</DL>
<HR>
<A NAME="reset()"><!-- --></A><H3>
reset</H3>
<PRE>
void <B>reset</B>()</PRE>
<DL>
<DD>Reset to initial state for reuse. The context is serially reusable,
as long as this method is called to clear any retained state information
between uses. It is automatically called when output is set.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="startDocument(java.lang.String, java.lang.Boolean)"><!-- --></A><H3>
startDocument</H3>
<PRE>
void <B>startDocument</B>(java.lang.String enc,
java.lang.Boolean alone)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Start document, writing the XML declaration. This can only be validly
called immediately following one of the set output methods; otherwise the
output document will be corrupt.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enc</CODE> - document encoding, <code>null</code> uses UTF-8 default<DD><CODE>alone</CODE> - standalone document flag, <code>null</code> if not
specified
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="startDocument(java.lang.String, java.lang.Boolean, java.io.OutputStream)"><!-- --></A><H3>
startDocument</H3>
<PRE>
void <B>startDocument</B>(java.lang.String enc,
java.lang.Boolean alone,
java.io.OutputStream outs)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Start document with output stream and encoding. The effect is the same
as from first setting the output stream and encoding, then making the
call to start document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enc</CODE> - document encoding, <code>null</code> uses UTF-8 default<DD><CODE>alone</CODE> - standalone document flag, <code>null</code> if not
specified<DD><CODE>outs</CODE> - stream for document data output
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="startDocument(java.lang.String, java.lang.Boolean, java.io.Writer)"><!-- --></A><H3>
startDocument</H3>
<PRE>
void <B>startDocument</B>(java.lang.String enc,
java.lang.Boolean alone,
java.io.Writer outw)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Start document with writer. The effect is the same as from first
setting the writer, then making the call to start document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>enc</CODE> - document encoding, <code>null</code> uses UTF-8 default<DD><CODE>alone</CODE> - standalone document flag, <code>null</code> if not
specified<DD><CODE>outw</CODE> - writer for document data output
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="endDocument()"><!-- --></A><H3>
endDocument</H3>
<PRE>
void <B>endDocument</B>()
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>End document. Finishes all output and closes the document. Note that if
this is called with an imcomplete marshalling the result will not be
well-formed XML.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="marshalDocument(java.lang.Object)"><!-- --></A><H3>
marshalDocument</H3>
<PRE>
void <B>marshalDocument</B>(java.lang.Object root)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Marshal document from root object without XML declaration. This can only
be validly called immediately following one of the set output methods;
otherwise the output document will be corrupt. The effect of this method
is the same as the sequence of a call to marshal the root object using
this context followed by a call to <A HREF="../../../org/jibx/runtime/IMarshallingContext.html#endDocument()"><CODE>endDocument()</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - object at root of structure to be marshalled, which must have
a top-level mapping in the binding
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="marshalDocument(java.lang.Object, java.lang.String, java.lang.Boolean)"><!-- --></A><H3>
marshalDocument</H3>
<PRE>
void <B>marshalDocument</B>(java.lang.Object root,
java.lang.String enc,
java.lang.Boolean alone)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Marshal document from root object. This can only be validly called
immediately following one of the set output methods; otherwise the output
document will be corrupt. The effect of this method is the same as the
sequence of a call to <A HREF="../../../org/jibx/runtime/IMarshallingContext.html#startDocument(java.lang.String, java.lang.Boolean)"><CODE>startDocument(java.lang.String, java.lang.Boolean)</CODE></A>, a call to marshal the root
object using this context, and finally a call to <A HREF="../../../org/jibx/runtime/IMarshallingContext.html#endDocument()"><CODE>endDocument()</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - object at root of structure to be marshalled, which must have
a top-level mapping in the binding<DD><CODE>enc</CODE> - document encoding, <code>null</code> uses UTF-8 default<DD><CODE>alone</CODE> - standalone document flag, <code>null</code> if not
specified
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="marshalDocument(java.lang.Object, java.lang.String, java.lang.Boolean, java.io.OutputStream)"><!-- --></A><H3>
marshalDocument</H3>
<PRE>
void <B>marshalDocument</B>(java.lang.Object root,
java.lang.String enc,
java.lang.Boolean alone,
java.io.OutputStream outs)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Marshal document from root object to output stream with encoding. The
effect of this method is the same as the sequence of a call to <A HREF="../../../org/jibx/runtime/IMarshallingContext.html#startDocument(java.lang.String, java.lang.Boolean)"><CODE>startDocument(java.lang.String, java.lang.Boolean)</CODE></A>, a call to marshal the root object using this context,
and finally a call to <A HREF="../../../org/jibx/runtime/IMarshallingContext.html#endDocument()"><CODE>endDocument()</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - object at root of structure to be marshalled, which must have
a top-level mapping in the binding<DD><CODE>enc</CODE> - document encoding, <code>null</code> uses UTF-8 default<DD><CODE>alone</CODE> - standalone document flag, <code>null</code> if not
specified<DD><CODE>outs</CODE> - stream for document data output
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="marshalDocument(java.lang.Object, java.lang.String, java.lang.Boolean, java.io.Writer)"><!-- --></A><H3>
marshalDocument</H3>
<PRE>
void <B>marshalDocument</B>(java.lang.Object root,
java.lang.String enc,
java.lang.Boolean alone,
java.io.Writer outw)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Marshal document from root object to writer. The effect of this method
is the same as the sequence of a call to <A HREF="../../../org/jibx/runtime/IMarshallingContext.html#startDocument(java.lang.String, java.lang.Boolean)"><CODE>startDocument(java.lang.String, java.lang.Boolean)</CODE></A>, a call
to marshal the root object using this context, and finally a call to
<A HREF="../../../org/jibx/runtime/IMarshallingContext.html#endDocument()"><CODE>endDocument()</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - object at root of structure to be marshalled, which must have
a top-level mapping in the binding<DD><CODE>enc</CODE> - document encoding, <code>null</code> uses UTF-8 default<DD><CODE>alone</CODE> - standalone document flag, <code>null</code> if not
specified<DD><CODE>outw</CODE> - writer for document data output
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<HR>
<A NAME="pushObject(java.lang.Object)"><!-- --></A><H3>
pushObject</H3>
<PRE>
void <B>pushObject</B>(java.lang.Object obj)</PRE>
<DL>
<DD>Push created object to marshalling stack. This must be called before
beginning the marshalling of the object. It is only called for objects
with structure, not for those converted directly to and from text.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>obj</CODE> - object being marshalled</DL>
</DD>
</DL>
<HR>
<A NAME="popObject()"><!-- --></A><H3>
popObject</H3>
<PRE>
void <B>popObject</B>()
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Pop marshalled object from stack.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - if no object on stack</DL>
</DD>
</DL>
<HR>
<A NAME="getStackDepth()"><!-- --></A><H3>
getStackDepth</H3>
<PRE>
int <B>getStackDepth</B>()</PRE>
<DL>
<DD>Get current marshalling object stack depth. This allows tracking
nested calls to marshal one object while in the process of marshalling
another object. The bottom item on the stack is always the root object
of the marshalling.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>number of objects in marshalling stack</DL>
</DD>
</DL>
<HR>
<A NAME="getStackObject(int)"><!-- --></A><H3>
getStackObject</H3>
<PRE>
java.lang.Object <B>getStackObject</B>(int depth)</PRE>
<DL>
<DD>Get object from marshalling stack. This stack allows tracking nested
calls to marshal one object while in the process of marshalling
another object. The bottom item on the stack is always the root object
of the marshalling.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>depth</CODE> - object depth in stack to be retrieved (must be in the range
of zero to the current depth minus one).
<DT><B>Returns:</B><DD>object from marshalling stack</DL>
</DD>
</DL>
<HR>
<A NAME="getStackTop()"><!-- --></A><H3>
getStackTop</H3>
<PRE>
java.lang.Object <B>getStackTop</B>()</PRE>
<DL>
<DD>Get top object on marshalling stack. This is safe to call even when no
objects are on the stack.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>object from marshalling stack, or <code>null</code> if none</DL>
</DD>
</DL>
<HR>
<A NAME="getMarshaller(int, java.lang.String)"><!-- --></A><H3>
getMarshaller</H3>
<PRE>
<A HREF="../../../org/jibx/runtime/IMarshaller.html" title="interface in org.jibx.runtime">IMarshaller</A> <B>getMarshaller</B>(int index,
java.lang.String name)
throws <A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></PRE>
<DL>
<DD>Find the marshaller for a particular class index
in the current context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - class index for marshalling definition<DD><CODE>name</CODE> - fully qualified name of class to be marshalled (used only
for validation)
<DT><B>Returns:</B><DD>marshalling handler for class
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../../org/jibx/runtime/JiBXException.html" title="class in org.jibx.runtime">JiBXException</A></CODE> - on any error (possibly wrapping other exception)</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<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="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../org/jibx/runtime/IMarshaller.html" title="interface in org.jibx.runtime"><B>PREV CLASS</B></A>
<A HREF="../../../org/jibx/runtime/ITrackSource.html" title="interface in org.jibx.runtime"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../index.html?org/jibx/runtime/IMarshallingContext.html" target="_top"><B>FRAMES</B></A>
<A HREF="IMarshallingContext.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<table width='80%%'><tr><td width='50%%'><p align='center'><a href='http://www.jibx.org/' target='_top'><font size='3'><b>Project Web Site</b></font></a></td><td width='50%%'><p align='center'></td></tr></table>
</BODY>
</HTML>
|