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 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952
|
<!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>
IXMLWriter (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="IXMLWriter (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/IUnmarshallingContext.html" title="interface in org.jibx.runtime"><B>PREV CLASS</B></A>
<A HREF="../../../org/jibx/runtime/JiBXException.html" title="class 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/IXMLWriter.html" target="_top"><B>FRAMES</B></A>
<A HREF="IXMLWriter.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 IXMLWriter</H2>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/jibx/runtime/impl/GenericXMLWriter.html" title="class in org.jibx.runtime.impl">GenericXMLWriter</A>, <A HREF="../../../org/jibx/runtime/impl/ISO88591StreamWriter.html" title="class in org.jibx.runtime.impl">ISO88591StreamWriter</A>, <A HREF="../../../org/jibx/extras/JDOMWriter.html" title="class in org.jibx.extras">JDOMWriter</A>, <A HREF="../../../org/jibx/runtime/impl/StreamWriterBase.html" title="class in org.jibx.runtime.impl">StreamWriterBase</A>, <A HREF="../../../org/jibx/runtime/impl/UTF8StreamWriter.html" title="class in org.jibx.runtime.impl">UTF8StreamWriter</A>, <A HREF="../../../org/jibx/runtime/impl/XMLWriterBase.html" title="class in org.jibx.runtime.impl">XMLWriterBase</A>, <A HREF="../../../org/jibx/runtime/impl/XMLWriterNamespaceBase.html" title="class in org.jibx.runtime.impl">XMLWriterNamespaceBase</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>IXMLWriter</B></DL>
</PRE>
<P>
XML writer interface used for output of marshalled document. This interface
allows easy substitution of different output formats, including parse event
stream equivalents. This makes heavy use of state information, so each
method call defined is only valid in certain states.
<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/IXMLWriter.html#addAttribute(int, java.lang.String, java.lang.String)">addAttribute</A></B>(int index,
java.lang.String name,
java.lang.String value)</CODE>
<BR>
Add attribute to current open start tag.</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/IXMLWriter.html#close()">close</A></B>()</CODE>
<BR>
Close document 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/IXMLWriter.html#closeEmptyTag()">closeEmptyTag</A></B>()</CODE>
<BR>
Close the current open start tag as an empty element.</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/IXMLWriter.html#closeStartTag()">closeStartTag</A></B>()</CODE>
<BR>
Close the current open start tag.</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/IXMLWriter.html#endTag(int, java.lang.String)">endTag</A></B>(int index,
java.lang.String name)</CODE>
<BR>
Generate end tag.</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/IXMLWriter.html#flush()">flush</A></B>()</CODE>
<BR>
Flush document output.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String[][]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IXMLWriter.html#getExtensionNamespaces()">getExtensionNamespaces</A></B>()</CODE>
<BR>
Get extension namespace URIs added to those in mapping.</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/IXMLWriter.html#getNamespaceCount()">getNamespaceCount</A></B>()</CODE>
<BR>
Get the number of namespaces currently defined.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IXMLWriter.html#getNamespacePrefix(int)">getNamespacePrefix</A></B>(int index)</CODE>
<BR>
Get current prefix defined for namespace.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IXMLWriter.html#getNamespaces()">getNamespaces</A></B>()</CODE>
<BR>
Get namespace URIs for mapping.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../org/jibx/runtime/IXMLWriter.html#getNamespaceUri(int)">getNamespaceUri</A></B>(int index)</CODE>
<BR>
Get URI for namespace.</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/IXMLWriter.html#getNestingDepth()">getNestingDepth</A></B>()</CODE>
<BR>
Get the current element nesting depth.</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/IXMLWriter.html#getPrefixIndex(java.lang.String)">getPrefixIndex</A></B>(java.lang.String prefix)</CODE>
<BR>
Get index of namespace mapped to prefix.</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/IXMLWriter.html#indent()">indent</A></B>()</CODE>
<BR>
Request output indent.</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/IXMLWriter.html#openNamespaces(int[], java.lang.String[])">openNamespaces</A></B>(int[] nums,
java.lang.String[] prefs)</CODE>
<BR>
Open the specified namespaces for use.</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/IXMLWriter.html#popExtensionNamespaces()">popExtensionNamespaces</A></B>()</CODE>
<BR>
Remove extension namespace URIs.</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/IXMLWriter.html#pushExtensionNamespaces(java.lang.String[])">pushExtensionNamespaces</A></B>(java.lang.String[] uris)</CODE>
<BR>
Append extension namespace URIs to those in mapping.</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/IXMLWriter.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/IXMLWriter.html#setIndentSpaces(int, java.lang.String, char)">setIndentSpaces</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/IXMLWriter.html#startTagClosed(int, java.lang.String)">startTagClosed</A></B>(int index,
java.lang.String name)</CODE>
<BR>
Generate closed start tag.</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/IXMLWriter.html#startTagNamespaces(int, java.lang.String, int[], java.lang.String[])">startTagNamespaces</A></B>(int index,
java.lang.String name,
int[] nums,
java.lang.String[] prefs)</CODE>
<BR>
Generate start tag for element with namespaces.</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/IXMLWriter.html#startTagOpen(int, java.lang.String)">startTagOpen</A></B>(int index,
java.lang.String name)</CODE>
<BR>
Generate open start tag.</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/IXMLWriter.html#writeCData(java.lang.String)">writeCData</A></B>(java.lang.String text)</CODE>
<BR>
Write CDATA text to document.</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/IXMLWriter.html#writeComment(java.lang.String)">writeComment</A></B>(java.lang.String text)</CODE>
<BR>
Write comment to document.</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/IXMLWriter.html#writeDocType(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">writeDocType</A></B>(java.lang.String name,
java.lang.String sys,
java.lang.String pub,
java.lang.String subset)</CODE>
<BR>
Write DOCTYPE declaration to document.</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/IXMLWriter.html#writeEntityRef(java.lang.String)">writeEntityRef</A></B>(java.lang.String name)</CODE>
<BR>
Write entity reference to document.</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/IXMLWriter.html#writePI(java.lang.String, java.lang.String)">writePI</A></B>(java.lang.String target,
java.lang.String data)</CODE>
<BR>
Write processing instruction to document.</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/IXMLWriter.html#writeTextContent(java.lang.String)">writeTextContent</A></B>(java.lang.String text)</CODE>
<BR>
Write ordinary character data text content to document.</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/IXMLWriter.html#writeXMLDecl(java.lang.String, java.lang.String, java.lang.String)">writeXMLDecl</A></B>(java.lang.String version,
java.lang.String encoding,
java.lang.String standalone)</CODE>
<BR>
Write XML declaration to document.</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="getNestingDepth()"><!-- --></A><H3>
getNestingDepth</H3>
<PRE>
int <B>getNestingDepth</B>()</PRE>
<DL>
<DD>Get the current element nesting depth. Elements are only counted in the
depth returned when they're officially open - after the start tag has
been output and before the end tag has been output.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>number of nested elements at current point in output</DL>
</DD>
</DL>
<HR>
<A NAME="getNamespaceCount()"><!-- --></A><H3>
getNamespaceCount</H3>
<PRE>
int <B>getNamespaceCount</B>()</PRE>
<DL>
<DD>Get the number of namespaces currently defined. This is equivalent to the
index of the next extension namespace added.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>namespace count</DL>
</DD>
</DL>
<HR>
<A NAME="setIndentSpaces(int, java.lang.String, char)"><!-- --></A><H3>
setIndentSpaces</H3>
<PRE>
void <B>setIndentSpaces</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="writeXMLDecl(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
writeXMLDecl</H3>
<PRE>
void <B>writeXMLDecl</B>(java.lang.String version,
java.lang.String encoding,
java.lang.String standalone)
throws java.io.IOException</PRE>
<DL>
<DD>Write XML declaration to document. This can only be called before any
other methods in the interface are called.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>version</CODE> - XML version text<DD><CODE>encoding</CODE> - text for encoding attribute (unspecified if
<code>null</code>)<DD><CODE>standalone</CODE> - text for standalone attribute (unspecified if
<code>null</code>)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="startTagOpen(int, java.lang.String)"><!-- --></A><H3>
startTagOpen</H3>
<PRE>
void <B>startTagOpen</B>(int index,
java.lang.String name)
throws java.io.IOException</PRE>
<DL>
<DD>Generate open start tag. This allows attributes and/or namespace
declarations to be added to the start tag, but must be followed by a
<A HREF="../../../org/jibx/runtime/IXMLWriter.html#closeStartTag()"><CODE>closeStartTag()</CODE></A> call.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - namespace URI index number<DD><CODE>name</CODE> - unqualified element name
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="startTagNamespaces(int, java.lang.String, int[], java.lang.String[])"><!-- --></A><H3>
startTagNamespaces</H3>
<PRE>
void <B>startTagNamespaces</B>(int index,
java.lang.String name,
int[] nums,
java.lang.String[] prefs)
throws java.io.IOException</PRE>
<DL>
<DD>Generate start tag for element with namespaces. This creates the actual
start tag, along with any necessary namespace declarations. Previously
active namespace declarations are not duplicated. The tag is
left incomplete, allowing other attributes to be added.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - namespace URI index number<DD><CODE>name</CODE> - element name<DD><CODE>nums</CODE> - array of namespace indexes defined by this element (must
be constant, reference is kept until end of element)<DD><CODE>prefs</CODE> - array of namespace prefixes mapped by this element (no
<code>null</code> values, use "" for default namespace declaration)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="addAttribute(int, java.lang.String, java.lang.String)"><!-- --></A><H3>
addAttribute</H3>
<PRE>
void <B>addAttribute</B>(int index,
java.lang.String name,
java.lang.String value)
throws java.io.IOException</PRE>
<DL>
<DD>Add attribute to current open start tag. This is only valid after a call
to <A HREF="../../../org/jibx/runtime/IXMLWriter.html#startTagOpen(int, java.lang.String)"><CODE>startTagOpen(int, java.lang.String)</CODE></A> and before the corresponding call to <A HREF="../../../org/jibx/runtime/IXMLWriter.html#closeStartTag()"><CODE>closeStartTag()</CODE></A>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - namespace URI index number<DD><CODE>name</CODE> - unqualified attribute name<DD><CODE>value</CODE> - text value for attribute
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="closeStartTag()"><!-- --></A><H3>
closeStartTag</H3>
<PRE>
void <B>closeStartTag</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Close the current open start tag. This is only valid after a call to
<A HREF="../../../org/jibx/runtime/IXMLWriter.html#startTagOpen(int, java.lang.String)"><CODE>startTagOpen(int, java.lang.String)</CODE></A>.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="closeEmptyTag()"><!-- --></A><H3>
closeEmptyTag</H3>
<PRE>
void <B>closeEmptyTag</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Close the current open start tag as an empty element. This is only valid
after a call to <A HREF="../../../org/jibx/runtime/IXMLWriter.html#startTagOpen(int, java.lang.String)"><CODE>startTagOpen(int, java.lang.String)</CODE></A>.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="startTagClosed(int, java.lang.String)"><!-- --></A><H3>
startTagClosed</H3>
<PRE>
void <B>startTagClosed</B>(int index,
java.lang.String name)
throws java.io.IOException</PRE>
<DL>
<DD>Generate closed start tag. No attributes or namespaces can be added to a
start tag written using this call.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - namespace URI index number<DD><CODE>name</CODE> - unqualified element name
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="endTag(int, java.lang.String)"><!-- --></A><H3>
endTag</H3>
<PRE>
void <B>endTag</B>(int index,
java.lang.String name)
throws java.io.IOException</PRE>
<DL>
<DD>Generate end tag.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - namespace URI index number<DD><CODE>name</CODE> - unqualified element name
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="writeTextContent(java.lang.String)"><!-- --></A><H3>
writeTextContent</H3>
<PRE>
void <B>writeTextContent</B>(java.lang.String text)
throws java.io.IOException</PRE>
<DL>
<DD>Write ordinary character data text content to document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - content value text (must not be <code>null</code>)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="writeCData(java.lang.String)"><!-- --></A><H3>
writeCData</H3>
<PRE>
void <B>writeCData</B>(java.lang.String text)
throws java.io.IOException</PRE>
<DL>
<DD>Write CDATA text to document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - content value text (must not be <code>null</code>)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="writeComment(java.lang.String)"><!-- --></A><H3>
writeComment</H3>
<PRE>
void <B>writeComment</B>(java.lang.String text)
throws java.io.IOException</PRE>
<DL>
<DD>Write comment to document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>text</CODE> - comment text (must not be <code>null</code>)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="writeEntityRef(java.lang.String)"><!-- --></A><H3>
writeEntityRef</H3>
<PRE>
void <B>writeEntityRef</B>(java.lang.String name)
throws java.io.IOException</PRE>
<DL>
<DD>Write entity reference to document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - entity name (must not be <code>null</code>)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="writeDocType(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
writeDocType</H3>
<PRE>
void <B>writeDocType</B>(java.lang.String name,
java.lang.String sys,
java.lang.String pub,
java.lang.String subset)
throws java.io.IOException</PRE>
<DL>
<DD>Write DOCTYPE declaration to document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - root element name<DD><CODE>sys</CODE> - system ID (<code>null</code> if none, must be
non-<code>null</code> for public ID to be used)<DD><CODE>pub</CODE> - public ID (<code>null</code> if none)<DD><CODE>subset</CODE> - internal subset (<code>null</code> if none)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="writePI(java.lang.String, java.lang.String)"><!-- --></A><H3>
writePI</H3>
<PRE>
void <B>writePI</B>(java.lang.String target,
java.lang.String data)
throws java.io.IOException</PRE>
<DL>
<DD>Write processing instruction to document.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>target</CODE> - processing instruction target name (must not be
<code>null</code>)<DD><CODE>data</CODE> - processing instruction data (must not be <code>null</code>)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="indent()"><!-- --></A><H3>
indent</H3>
<PRE>
void <B>indent</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Request output indent. The writer implementation should normally indent
output as appropriate. This method can be used to request indenting of
output that might otherwise not be indented. The normal effect when used
with a text-oriented writer should be to output the appropriate line end
sequence followed by the appropriate number of indent characters for the
current nesting level.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="flush()"><!-- --></A><H3>
flush</H3>
<PRE>
void <B>flush</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Flush document output. Forces out all output generated to this point.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</DL>
</DD>
</DL>
<HR>
<A NAME="close()"><!-- --></A><H3>
close</H3>
<PRE>
void <B>close</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Close document output. Completes writing of document output, including
closing the output medium.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</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="getNamespaces()"><!-- --></A><H3>
getNamespaces</H3>
<PRE>
java.lang.String[] <B>getNamespaces</B>()</PRE>
<DL>
<DD>Get namespace URIs for mapping. This gets the full ordered array of
namespaces known in the binding used for this marshalling, where the
index number of each namespace URI is the namespace index used to lookup
the prefix when marshalling a name in that namespace. The returned array
must not be modified.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of namespaces</DL>
</DD>
</DL>
<HR>
<A NAME="getNamespaceUri(int)"><!-- --></A><H3>
getNamespaceUri</H3>
<PRE>
java.lang.String <B>getNamespaceUri</B>(int index)</PRE>
<DL>
<DD>Get URI for namespace.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - namespace URI index number
<DT><B>Returns:</B><DD>namespace URI text, or <code>null</code> if the namespace index
is invalid</DL>
</DD>
</DL>
<HR>
<A NAME="getNamespacePrefix(int)"><!-- --></A><H3>
getNamespacePrefix</H3>
<PRE>
java.lang.String <B>getNamespacePrefix</B>(int index)</PRE>
<DL>
<DD>Get current prefix defined for namespace.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - namespace URI index number
<DT><B>Returns:</B><DD>current prefix text, or <code>null</code> if the namespace is not
currently mapped</DL>
</DD>
</DL>
<HR>
<A NAME="getPrefixIndex(java.lang.String)"><!-- --></A><H3>
getPrefixIndex</H3>
<PRE>
int <B>getPrefixIndex</B>(java.lang.String prefix)</PRE>
<DL>
<DD>Get index of namespace mapped to prefix. This can be an expensive
operation with time proportional to the number of namespaces defined, so
it should be used with care.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - text to match (non-<code>null</code>, use "" for default
prefix)
<DT><B>Returns:</B><DD>index namespace URI index number mapped to prefix</DL>
</DD>
</DL>
<HR>
<A NAME="pushExtensionNamespaces(java.lang.String[])"><!-- --></A><H3>
pushExtensionNamespaces</H3>
<PRE>
void <B>pushExtensionNamespaces</B>(java.lang.String[] uris)</PRE>
<DL>
<DD>Append extension namespace URIs to those in mapping.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uris</CODE> - namespace URIs to extend those in mapping</DL>
</DD>
</DL>
<HR>
<A NAME="popExtensionNamespaces()"><!-- --></A><H3>
popExtensionNamespaces</H3>
<PRE>
void <B>popExtensionNamespaces</B>()</PRE>
<DL>
<DD>Remove extension namespace URIs. This removes the last set of
extension namespaces pushed using <A HREF="../../../org/jibx/runtime/IXMLWriter.html#pushExtensionNamespaces(java.lang.String[])"><CODE>pushExtensionNamespaces(java.lang.String[])</CODE></A>.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getExtensionNamespaces()"><!-- --></A><H3>
getExtensionNamespaces</H3>
<PRE>
java.lang.String[][] <B>getExtensionNamespaces</B>()</PRE>
<DL>
<DD>Get extension namespace URIs added to those in mapping. This gets the
current set of extension definitions. The returned arrays must not be
modified.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of arrays of extension namespaces (<code>null</code> if
none)</DL>
</DD>
</DL>
<HR>
<A NAME="openNamespaces(int[], java.lang.String[])"><!-- --></A><H3>
openNamespaces</H3>
<PRE>
int[] <B>openNamespaces</B>(int[] nums,
java.lang.String[] prefs)
throws java.io.IOException</PRE>
<DL>
<DD>Open the specified namespaces for use. This method is normally only
called internally, when namespace declarations are actually written to
output. It is exposed as part of this interface to allow for special
circumstances where namespaces are being written outside the usual
processing. The namespaces will remain open for use until the current
element is closed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nums</CODE> - array of namespace indexes defined by this element (must
be constant, reference is kept until namespaces are closed)<DD><CODE>prefs</CODE> - array of namespace prefixes mapped by this element (no
<code>null</code> values, use "" for default namespace declaration)
<DT><B>Returns:</B><DD>array of indexes for namespaces not previously active (the ones
actually needing to be declared, in the case of text output)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on error writing to document</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/IUnmarshallingContext.html" title="interface in org.jibx.runtime"><B>PREV CLASS</B></A>
<A HREF="../../../org/jibx/runtime/JiBXException.html" title="class 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/IXMLWriter.html" target="_top"><B>FRAMES</B></A>
<A HREF="IXMLWriter.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>
|