/usr/share/doc/libjdom1-java/api/org/jdom/Document.html is in libjdom1-java-doc 1.1.2+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 | <!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_24) on Mon Dec 05 11:37:30 UTC 2011 -->
<TITLE>
Document (JDOM v1.x-snapshot)
</TITLE>
<META NAME="date" CONTENT="2011-12-05">
<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="Document (JDOM v1.x-snapshot)";
}
}
</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="class-use/Document.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JDOM<br><font size='-1'>1.x-snapshot</font></b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><B>PREV CLASS</B></A>
<A HREF="../../org/jdom/Element.html" title="class in org.jdom"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?org/jdom/Document.html" target="_top"><B>FRAMES</B></A>
<A HREF="Document.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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.jdom</FONT>
<BR>
Class Document</H2>
<PRE>
java.lang.Object
<IMG SRC="../../resources/inherit.gif" ALT="extended by "><B>org.jdom.Document</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, java.lang.Cloneable, <A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>Document</B><DT>extends java.lang.Object<DT>implements <A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></DL>
</PRE>
<P>
An XML document. Methods allow access to the root element as well as the
<A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A> and other document-level information.
<P>
<P>
<DL>
<DT><B>Version:</B></DT>
<DD>$Revision: 1.85 $, $Date: 2007/11/10 05:28:58 $</DD>
<DT><B>Author:</B></DT>
<DD>Brett McLaughlin, Jason Hunter, Jools Enticknap, Bradley S. Huffman</DD>
<DT><B>See Also:</B><DD><A HREF="../../serialized-form.html#org.jdom.Document">Serialized Form</A></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_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>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#baseURI">baseURI</A></B></CODE>
<BR>
See http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/core.html#baseURIs-Considerations</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_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>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../org/jdom/Document.html#Document()">Document</A></B>()</CODE>
<BR>
Creates a new empty document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../org/jdom/Document.html#Document(org.jdom.Element)">Document</A></B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement)</CODE>
<BR>
This will create a new <code>Document</code>,
with the supplied <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code>
as the root element, and no <code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code>
declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../org/jdom/Document.html#Document(org.jdom.Element, org.jdom.DocType)">Document</A></B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement,
<A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A> docType)</CODE>
<BR>
This will create a new <code>Document</code>,
with the supplied <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code>
as the root element and the supplied
<code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code> declaration.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../org/jdom/Document.html#Document(org.jdom.Element, org.jdom.DocType, java.lang.String)">Document</A></B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement,
<A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A> docType,
java.lang.String baseURI)</CODE>
<BR>
This will create a new <code>Document</code>,
with the supplied <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code>
as the root element, the supplied
<code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code> declaration, and the specified
base URI.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../org/jdom/Document.html#Document(java.util.List)">Document</A></B>(java.util.List content)</CODE>
<BR>
This will create a new <code>Document</code>,
with the supplied list of content, and a
<code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code> declaration only if the content
contains a DocType instance.</TD>
</TR>
</TABLE>
<!-- ========== 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> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#addContent(java.util.Collection)">addContent</A></B>(java.util.Collection c)</CODE>
<BR>
Appends all children in the given collection to the end of
the content list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#addContent(org.jdom.Content)">addContent</A></B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</CODE>
<BR>
Appends the child to the end of the content list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#addContent(int, java.util.Collection)">addContent</A></B>(int index,
java.util.Collection c)</CODE>
<BR>
Inserts the content in a collection into the content list
at the given index.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#addContent(int, org.jdom.Content)">addContent</A></B>(int index,
<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</CODE>
<BR>
Inserts the child into the content list at the given index.</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/jdom/Document.html#clone()">clone</A></B>()</CODE>
<BR>
This will return a deep clone of this <code>Document</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#cloneContent()">cloneContent</A></B>()</CODE>
<BR>
Returns a list containing detached clones of this parent's content list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#detachRootElement()">detachRootElement</A></B>()</CODE>
<BR>
Detach the root <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code> from this document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object ob)</CODE>
<BR>
This tests for equality of this <code>Document</code> to the supplied
<code>Object</code>.</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/jdom/Document.html#getBaseURI()">getBaseURI</A></B>()</CODE>
<BR>
Returns the URI from which this document was loaded,
or null if this is not known.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getContent()">getContent</A></B>()</CODE>
<BR>
This will return all content for the <code>Document</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getContent(org.jdom.filter.Filter)">getContent</A></B>(<A HREF="../../org/jdom/filter/Filter.html" title="interface in org.jdom.filter">Filter</A> filter)</CODE>
<BR>
Return a filtered view of this <code>Document</code>'s content.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getContent(int)">getContent</A></B>(int index)</CODE>
<BR>
Returns the child at the given index.</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/jdom/Document.html#getContentSize()">getContentSize</A></B>()</CODE>
<BR>
Returns the number of children in this parent's content list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Iterator</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getDescendants()">getDescendants</A></B>()</CODE>
<BR>
Returns an iterator that walks over all descendants in document order.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.Iterator</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getDescendants(org.jdom.filter.Filter)">getDescendants</A></B>(<A HREF="../../org/jdom/filter/Filter.html" title="interface in org.jdom.filter">Filter</A> filter)</CODE>
<BR>
Returns an iterator that walks over all descendants in document order
applying the Filter to return only elements that match the filter rule.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getDocType()">getDocType</A></B>()</CODE>
<BR>
This will return the <code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code>
declaration for this <code>Document</code>, or
<code>null</code> if none exists.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getDocument()">getDocument</A></B>()</CODE>
<BR>
Return this parent's owning document or null if the branch containing
this parent is currently not attached to a document.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getParent()">getParent</A></B>()</CODE>
<BR>
Return this parent's parent, or null if this parent is currently
not attached to another parent.</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/jdom/Document.html#getProperty(java.lang.String)">getProperty</A></B>(java.lang.String id)</CODE>
<BR>
Returns the object associated with this document under the given "id"
string, or null if there is no binding or if the binding explicitly
stored a null value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#getRootElement()">getRootElement</A></B>()</CODE>
<BR>
This will return the root <code>Element</code>
for this <code>Document</code></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/jdom/Document.html#hashCode()">hashCode</A></B>()</CODE>
<BR>
This returns the hash code for this <code>Document</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#hasRootElement()">hasRootElement</A></B>()</CODE>
<BR>
This will return <code>true</code> if this document has a
root element, <code>false</code> otherwise.</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/jdom/Document.html#indexOf(org.jdom.Content)">indexOf</A></B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</CODE>
<BR>
Returns the index of the supplied child in the content list,
or -1 if not a child of this parent.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#removeContent()">removeContent</A></B>()</CODE>
<BR>
Removes all child content from this parent.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#removeContent(org.jdom.Content)">removeContent</A></B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</CODE>
<BR>
Removes a single child node from the content list.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#removeContent(org.jdom.filter.Filter)">removeContent</A></B>(<A HREF="../../org/jdom/filter/Filter.html" title="interface in org.jdom.filter">Filter</A> filter)</CODE>
<BR>
Remove all child content from this parent matching the supplied filter.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#removeContent(int)">removeContent</A></B>(int index)</CODE>
<BR>
Removes and returns the child at the given
index, or returns null if there's no such child.</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/jdom/Document.html#setBaseURI(java.lang.String)">setBaseURI</A></B>(java.lang.String uri)</CODE>
<BR>
Sets the effective URI from which this document was loaded,
and against which relative URLs in this document will be resolved.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#setContent(java.util.Collection)">setContent</A></B>(java.util.Collection newContent)</CODE>
<BR>
This sets the content of the <code>Document</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#setContent(org.jdom.Content)">setContent</A></B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</CODE>
<BR>
Set this document's content to be the supplied child.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#setContent(int, java.util.Collection)">setContent</A></B>(int index,
java.util.Collection collection)</CODE>
<BR>
Replace the child at the given index whith the supplied
collection.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#setContent(int, org.jdom.Content)">setContent</A></B>(int index,
<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#setDocType(org.jdom.DocType)">setDocType</A></B>(<A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A> docType)</CODE>
<BR>
This will set the <code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code>
declaration for this <code>Document</code>.</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/jdom/Document.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A></B>(java.lang.String id,
java.lang.Object value)</CODE>
<BR>
Assigns an arbitrary object to be associated with this document under
the given "id" string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/jdom/Document.html#setRootElement(org.jdom.Element)">setRootElement</A></B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement)</CODE>
<BR>
This sets the root <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code> for the
<code>Document</code>.</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/jdom/Document.html#toString()">toString</A></B>()</CODE>
<BR>
This returns a <code>String</code> representation of the
<code>Document</code>, suitable for debugging.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_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>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="baseURI"><!-- --></A><H3>
baseURI</H3>
<PRE>
protected java.lang.String <B>baseURI</B></PRE>
<DL>
<DD>See http://www.w3.org/TR/2003/WD-DOM-Level-3-Core-20030226/core.html#baseURIs-Considerations
<P>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_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>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="Document()"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>()</PRE>
<DL>
<DD>Creates a new empty document. A document must have a root element,
so this document will not be well-formed and accessor methods will
throw an IllegalStateException if this document is accessed before a
root element is added. This method is most useful for build tools.
<P>
</DL>
<HR>
<A NAME="Document(org.jdom.Element, org.jdom.DocType, java.lang.String)"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement,
<A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A> docType,
java.lang.String baseURI)</PRE>
<DL>
<DD>This will create a new <code>Document</code>,
with the supplied <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code>
as the root element, the supplied
<code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code> declaration, and the specified
base URI.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>rootElement</CODE> - <code>Element</code> for document root.<DD><CODE>docType</CODE> - <code>DocType</code> declaration.<DD><CODE>baseURI</CODE> - the URI from which this doucment was loaded.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the given docType object
is already attached to a document or the given
rootElement already has a parent</DL>
</DL>
<HR>
<A NAME="Document(org.jdom.Element, org.jdom.DocType)"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement,
<A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A> docType)</PRE>
<DL>
<DD>This will create a new <code>Document</code>,
with the supplied <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code>
as the root element and the supplied
<code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code> declaration.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>rootElement</CODE> - <code>Element</code> for document root.<DD><CODE>docType</CODE> - <code>DocType</code> declaration.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the given DocType object
is already attached to a document or the given
rootElement already has a parent</DL>
</DL>
<HR>
<A NAME="Document(org.jdom.Element)"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement)</PRE>
<DL>
<DD>This will create a new <code>Document</code>,
with the supplied <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code>
as the root element, and no <code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code>
declaration.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>rootElement</CODE> - <code>Element</code> for document root
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the given rootElement already has
a parent.</DL>
</DL>
<HR>
<A NAME="Document(java.util.List)"><!-- --></A><H3>
Document</H3>
<PRE>
public <B>Document</B>(java.util.List content)</PRE>
<DL>
<DD>This will create a new <code>Document</code>,
with the supplied list of content, and a
<code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code> declaration only if the content
contains a DocType instance. A null list is treated the
same as the no-arg constructor.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>content</CODE> - <code>List</code> of starter content
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the List contains more than
one Element or objects of illegal types.</DL>
</DL>
<!-- ============ 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="getContentSize()"><!-- --></A><H3>
getContentSize</H3>
<PRE>
public int <B>getContentSize</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#getContentSize()">Parent</A></CODE></B></DD>
<DD>Returns the number of children in this parent's content list.
Children may be any <A HREF="../../org/jdom/Content.html" title="class in org.jdom"><CODE>Content</CODE></A> type.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getContentSize()">getContentSize</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>number of children</DL>
</DD>
</DL>
<HR>
<A NAME="indexOf(org.jdom.Content)"><!-- --></A><H3>
indexOf</H3>
<PRE>
public int <B>indexOf</B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#indexOf(org.jdom.Content)">Parent</A></CODE></B></DD>
<DD>Returns the index of the supplied child in the content list,
or -1 if not a child of this parent.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#indexOf(org.jdom.Content)">indexOf</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>child</CODE> - child to search for
<DT><B>Returns:</B><DD>index of child, or -1 if not found</DL>
</DD>
</DL>
<HR>
<A NAME="hasRootElement()"><!-- --></A><H3>
hasRootElement</H3>
<PRE>
public boolean <B>hasRootElement</B>()</PRE>
<DL>
<DD>This will return <code>true</code> if this document has a
root element, <code>false</code> otherwise.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>true</code> if this document has a root element,
<code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="getRootElement()"><!-- --></A><H3>
getRootElement</H3>
<PRE>
public <A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> <B>getRootElement</B>()</PRE>
<DL>
<DD>This will return the root <code>Element</code>
for this <code>Document</code>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>Element</code> - the document's root element
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if the root element hasn't been set</DL>
</DD>
</DL>
<HR>
<A NAME="setRootElement(org.jdom.Element)"><!-- --></A><H3>
setRootElement</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>setRootElement</B>(<A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> rootElement)</PRE>
<DL>
<DD>This sets the root <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code> for the
<code>Document</code>. If the document already has a root
element, it is replaced.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rootElement</CODE> - <code>Element</code> to be new root.
<DT><B>Returns:</B><DD><code>Document</code> - modified Document.
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the given rootElement already has
a parent.</DL>
</DD>
</DL>
<HR>
<A NAME="detachRootElement()"><!-- --></A><H3>
detachRootElement</H3>
<PRE>
public <A HREF="../../org/jdom/Element.html" title="class in org.jdom">Element</A> <B>detachRootElement</B>()</PRE>
<DL>
<DD>Detach the root <code><A HREF="../../org/jdom/Element.html" title="class in org.jdom"><CODE>Element</CODE></A></code> from this document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>removed root <code>Element</code></DL>
</DD>
</DL>
<HR>
<A NAME="getDocType()"><!-- --></A><H3>
getDocType</H3>
<PRE>
public <A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A> <B>getDocType</B>()</PRE>
<DL>
<DD>This will return the <code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code>
declaration for this <code>Document</code>, or
<code>null</code> if none exists.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>DocType</code> - the DOCTYPE declaration.</DL>
</DD>
</DL>
<HR>
<A NAME="setDocType(org.jdom.DocType)"><!-- --></A><H3>
setDocType</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>setDocType</B>(<A HREF="../../org/jdom/DocType.html" title="class in org.jdom">DocType</A> docType)</PRE>
<DL>
<DD>This will set the <code><A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><CODE>DocType</CODE></A></code>
declaration for this <code>Document</code>. Note
that a DocType can only be attached to one Document.
Attempting to set the DocType to a DocType object
that already belongs to a Document will result in an
IllegalAddException being thrown.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>docType</CODE> - <code>DocType</code> declaration.
<DT><B>Returns:</B><DD>object on which the method was invoked
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the given docType is
already attached to a Document.</DL>
</DD>
</DL>
<HR>
<A NAME="addContent(org.jdom.Content)"><!-- --></A><H3>
addContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>addContent</B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</PRE>
<DL>
<DD>Appends the child to the end of the content list.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>child</CODE> - child to append to end of content list
<DT><B>Returns:</B><DD>the document on which the method was called
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the given child already has a parent.</DL>
</DD>
</DL>
<HR>
<A NAME="addContent(java.util.Collection)"><!-- --></A><H3>
addContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>addContent</B>(java.util.Collection c)</PRE>
<DL>
<DD>Appends all children in the given collection to the end of
the content list. In event of an exception during add the
original content will be unchanged and the objects in the supplied
collection will be unaltered.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - collection to append
<DT><B>Returns:</B><DD>the document on which the method was called
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if any item in the collection
already has a parent or is of an illegal type.</DL>
</DD>
</DL>
<HR>
<A NAME="addContent(int, org.jdom.Content)"><!-- --></A><H3>
addContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>addContent</B>(int index,
<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</PRE>
<DL>
<DD>Inserts the child into the content list at the given index.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - location for adding the collection<DD><CODE>child</CODE> - child to insert
<DT><B>Returns:</B><DD>the parent on which the method was called
<DT><B>Throws:</B>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if index is negative or beyond
the current number of children
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the given child already has a parent.</DL>
</DD>
</DL>
<HR>
<A NAME="addContent(int, java.util.Collection)"><!-- --></A><H3>
addContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>addContent</B>(int index,
java.util.Collection c)</PRE>
<DL>
<DD>Inserts the content in a collection into the content list
at the given index. In event of an exception the original content
will be unchanged and the objects in the supplied collection will be
unaltered.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - location for adding the collection<DD><CODE>c</CODE> - collection to insert
<DT><B>Returns:</B><DD>the parent on which the method was called
<DT><B>Throws:</B>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if index is negative or beyond
the current number of children
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if any item in the collection
already has a parent or is of an illegal type.</DL>
</DD>
</DL>
<HR>
<A NAME="cloneContent()"><!-- --></A><H3>
cloneContent</H3>
<PRE>
public java.util.List <B>cloneContent</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#cloneContent()">Parent</A></CODE></B></DD>
<DD>Returns a list containing detached clones of this parent's content list.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#cloneContent()">cloneContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>list of cloned child content</DL>
</DD>
</DL>
<HR>
<A NAME="getContent(int)"><!-- --></A><H3>
getContent</H3>
<PRE>
public <A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> <B>getContent</B>(int index)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#getContent(int)">Parent</A></CODE></B></DD>
<DD>Returns the child at the given index.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getContent(int)">getContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - location of desired child
<DT><B>Returns:</B><DD>child at the given index</DL>
</DD>
</DL>
<HR>
<A NAME="getContent()"><!-- --></A><H3>
getContent</H3>
<PRE>
public java.util.List <B>getContent</B>()</PRE>
<DL>
<DD>This will return all content for the <code>Document</code>.
The returned list is "live" in document order and changes to it
affect the document's actual content.
<p>
Sequential traversal through the List is best done with a Iterator
since the underlying implement of List.size() may require walking the
entire list.
</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getContent()">getContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>List</code> - all Document content
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if the root element hasn't been set</DL>
</DD>
</DL>
<HR>
<A NAME="getContent(org.jdom.filter.Filter)"><!-- --></A><H3>
getContent</H3>
<PRE>
public java.util.List <B>getContent</B>(<A HREF="../../org/jdom/filter/Filter.html" title="interface in org.jdom.filter">Filter</A> filter)</PRE>
<DL>
<DD>Return a filtered view of this <code>Document</code>'s content.
<p>
Sequential traversal through the List is best done with a Iterator
since the underlying implement of List.size() may require walking the
entire list.
</p>
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getContent(org.jdom.filter.Filter)">getContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filter</CODE> - <code>Filter</code> to apply
<DT><B>Returns:</B><DD><code>List</code> - filtered Document content
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalStateException</CODE> - if the root element hasn't been set</DL>
</DD>
</DL>
<HR>
<A NAME="removeContent()"><!-- --></A><H3>
removeContent</H3>
<PRE>
public java.util.List <B>removeContent</B>()</PRE>
<DL>
<DD>Removes all child content from this parent.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#removeContent()">removeContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>list of the old children detached from this parent</DL>
</DD>
</DL>
<HR>
<A NAME="removeContent(org.jdom.filter.Filter)"><!-- --></A><H3>
removeContent</H3>
<PRE>
public java.util.List <B>removeContent</B>(<A HREF="../../org/jdom/filter/Filter.html" title="interface in org.jdom.filter">Filter</A> filter)</PRE>
<DL>
<DD>Remove all child content from this parent matching the supplied filter.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#removeContent(org.jdom.filter.Filter)">removeContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filter</CODE> - filter to select which content to remove
<DT><B>Returns:</B><DD>list of the old children detached from this parent</DL>
</DD>
</DL>
<HR>
<A NAME="setContent(java.util.Collection)"><!-- --></A><H3>
setContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>setContent</B>(java.util.Collection newContent)</PRE>
<DL>
<DD>This sets the content of the <code>Document</code>. The supplied
List should contain only objects of type <code>Element</code>,
<code>Comment</code>, and <code>ProcessingInstruction</code>.
<p>
When all objects in the supplied List are legal and before the new
content is added, all objects in the old content will have their
parentage set to null (no parent) and the old content list will be
cleared. This has the effect that any active list (previously obtained
with a call to <A HREF="../../org/jdom/Document.html#getContent(int)"><CODE>getContent(int)</CODE></A>) will also
change to reflect the new content. In addition, all objects in the
supplied List will have their parentage set to this document, but the
List itself will not be "live" and further removals and additions will
have no effect on this document content. If the user wants to continue
working with a "live" list, then a call to setContent should be
followed by a call to <A HREF="../../org/jdom/Document.html#getContent(int)"><CODE>getContent(int)</CODE></A> to
obtain a "live" version of the content.
</p>
<p>
Passing a null or empty List clears the existing content.
</p>
<p>
In event of an exception the original content will be unchanged and
the objects in the supplied content will be unaltered.
</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>newContent</CODE> - <code>List</code> of content to set
<DT><B>Returns:</B><DD>this document modified
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the List contains objects of
illegal types or with existing parentage.</DL>
</DD>
</DL>
<HR>
<A NAME="setBaseURI(java.lang.String)"><!-- --></A><H3>
setBaseURI</H3>
<PRE>
public final void <B>setBaseURI</B>(java.lang.String uri)</PRE>
<DL>
<DD><p>
Sets the effective URI from which this document was loaded,
and against which relative URLs in this document will be resolved.
</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - the base URI of this document</DL>
</DD>
</DL>
<HR>
<A NAME="getBaseURI()"><!-- --></A><H3>
getBaseURI</H3>
<PRE>
public final java.lang.String <B>getBaseURI</B>()</PRE>
<DL>
<DD><p>
Returns the URI from which this document was loaded,
or null if this is not known.
</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the base URI of this document</DL>
</DD>
</DL>
<HR>
<A NAME="setContent(int, org.jdom.Content)"><!-- --></A><H3>
setContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>setContent</B>(int index,
<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setContent(int, java.util.Collection)"><!-- --></A><H3>
setContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>setContent</B>(int index,
java.util.Collection collection)</PRE>
<DL>
<DD>Replace the child at the given index whith the supplied
collection.
<p>
In event of an exception the original content will be unchanged and
the content in the supplied collection will be unaltered.
</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - - index of child to replace.<DD><CODE>collection</CODE> - - collection of content to add.
<DT><B>Returns:</B><DD>object on which the method was invoked
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the collection contains objects of
illegal types.
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - if index is negative or greater
than the current number of children.</DL>
</DD>
</DL>
<HR>
<A NAME="removeContent(org.jdom.Content)"><!-- --></A><H3>
removeContent</H3>
<PRE>
public boolean <B>removeContent</B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#removeContent(org.jdom.Content)">Parent</A></CODE></B></DD>
<DD>Removes a single child node from the content list.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#removeContent(org.jdom.Content)">removeContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>child</CODE> - child to remove
<DT><B>Returns:</B><DD>whether the removal occurred</DL>
</DD>
</DL>
<HR>
<A NAME="removeContent(int)"><!-- --></A><H3>
removeContent</H3>
<PRE>
public <A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> <B>removeContent</B>(int index)</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#removeContent(int)">Parent</A></CODE></B></DD>
<DD>Removes and returns the child at the given
index, or returns null if there's no such child.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#removeContent(int)">removeContent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - index of child to remove
<DT><B>Returns:</B><DD>detached child at given index or null if no</DL>
</DD>
</DL>
<HR>
<A NAME="setContent(org.jdom.Content)"><!-- --></A><H3>
setContent</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>setContent</B>(<A HREF="../../org/jdom/Content.html" title="class in org.jdom">Content</A> child)</PRE>
<DL>
<DD>Set this document's content to be the supplied child.
<p>
If the supplied child is legal content for a Document and before
it is added, all content in the current content list will
be cleared and all current children will have their parentage set to
null.
<p>
This has the effect that any active list (previously obtained with
a call to one of the <A HREF="../../org/jdom/Document.html#getContent(int)"><CODE>getContent(int)</CODE></A> methods will also change
to reflect the new content. In addition, all content in the supplied
collection will have their parentage set to this Document. If the user
wants to continue working with a <b>"live"</b> list of this Document's
child, then a call to setContent should be followed by a call to one
of the <A HREF="../../org/jdom/Document.html#getContent(int)"><CODE>getContent(int)</CODE></A> methods to obtain a <b>"live"</b>
version of the children.
<p>
Passing a null child clears the existing content.
<p>
In event of an exception the original content will be unchanged and
the supplied child will be unaltered.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>child</CODE> - new content to replace existing content
<DT><B>Returns:</B><DD>the parent on which the method was called
<DT><B>Throws:</B>
<DD><CODE><A HREF="../../org/jdom/IllegalAddException.html" title="class in org.jdom">IllegalAddException</A></CODE> - if the supplied child is already attached
or not legal content for this parent</DL>
</DD>
</DL>
<HR>
<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>This returns a <code>String</code> representation of the
<code>Document</code>, suitable for debugging. If the XML
representation of the <code>Document</code> is desired,
<A HREF="../../org/jdom/output/XMLOutputter.html#outputString(org.jdom.Document)"><CODE>XMLOutputter.outputString(Document)</CODE></A>
should be used.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>String</code> - information about the
<code>Document</code></DL>
</DD>
</DL>
<HR>
<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public final boolean <B>equals</B>(java.lang.Object ob)</PRE>
<DL>
<DD>This tests for equality of this <code>Document</code> to the supplied
<code>Object</code>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ob</CODE> - <code>Object</code> to compare to
<DT><B>Returns:</B><DD><code>boolean</code> whether the <code>Document</code> is
equal to the supplied <code>Object</code></DL>
</DD>
</DL>
<HR>
<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public final int <B>hashCode</B>()</PRE>
<DL>
<DD>This returns the hash code for this <code>Document</code>.
<P>
<DD><DL>
<DT><B>Overrides:</B><DD><CODE>hashCode</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>int</code> hash code</DL>
</DD>
</DL>
<HR>
<A NAME="clone()"><!-- --></A><H3>
clone</H3>
<PRE>
public java.lang.Object <B>clone</B>()</PRE>
<DL>
<DD>This will return a deep clone of this <code>Document</code>.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#clone()">clone</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><code>Object</code> clone of this <code>Document</code></DL>
</DD>
</DL>
<HR>
<A NAME="getDescendants()"><!-- --></A><H3>
getDescendants</H3>
<PRE>
public java.util.Iterator <B>getDescendants</B>()</PRE>
<DL>
<DD>Returns an iterator that walks over all descendants in document order.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getDescendants()">getDescendants</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>an iterator to walk descendants</DL>
</DD>
</DL>
<HR>
<A NAME="getDescendants(org.jdom.filter.Filter)"><!-- --></A><H3>
getDescendants</H3>
<PRE>
public java.util.Iterator <B>getDescendants</B>(<A HREF="../../org/jdom/filter/Filter.html" title="interface in org.jdom.filter">Filter</A> filter)</PRE>
<DL>
<DD>Returns an iterator that walks over all descendants in document order
applying the Filter to return only elements that match the filter rule.
With filters you can match only Elements, only Comments, Elements or
Comments, only Elements with a given name and/or prefix, and so on.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getDescendants(org.jdom.filter.Filter)">getDescendants</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filter</CODE> - filter to select which descendants to see
<DT><B>Returns:</B><DD>an iterator to walk descendants within a filter</DL>
</DD>
</DL>
<HR>
<A NAME="getParent()"><!-- --></A><H3>
getParent</H3>
<PRE>
public <A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A> <B>getParent</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#getParent()">Parent</A></CODE></B></DD>
<DD>Return this parent's parent, or null if this parent is currently
not attached to another parent. This is the same method as in Content but
also added to Parent to allow more easy up-the-tree walking.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getParent()">getParent</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>this parent's parent or null if none</DL>
</DD>
</DL>
<HR>
<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
public <A HREF="../../org/jdom/Document.html" title="class in org.jdom">Document</A> <B>getDocument</B>()</PRE>
<DL>
<DD><B>Description copied from interface: <CODE><A HREF="../../org/jdom/Parent.html#getDocument()">Parent</A></CODE></B></DD>
<DD>Return this parent's owning document or null if the branch containing
this parent is currently not attached to a document.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE><A HREF="../../org/jdom/Parent.html#getDocument()">getDocument</A></CODE> in interface <CODE><A HREF="../../org/jdom/Parent.html" title="interface in org.jdom">Parent</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>this child's owning document or null if none<DT><B>See Also:</B><DD><A HREF="../../org/jdom/Parent.html#getDocument()"><CODE>Parent.getDocument()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setProperty(java.lang.String, java.lang.Object)"><!-- --></A><H3>
setProperty</H3>
<PRE>
public void <B>setProperty</B>(java.lang.String id,
java.lang.Object value)</PRE>
<DL>
<DD>Assigns an arbitrary object to be associated with this document under
the given "id" string. Null values are permitted. Strings beginning
with "http://www.jdom.org/ are reserved for JDOM use.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the stored object<DD><CODE>value</CODE> - the object to store</DL>
</DD>
</DL>
<HR>
<A NAME="getProperty(java.lang.String)"><!-- --></A><H3>
getProperty</H3>
<PRE>
public java.lang.Object <B>getProperty</B>(java.lang.String id)</PRE>
<DL>
<DD>Returns the object associated with this document under the given "id"
string, or null if there is no binding or if the binding explicitly
stored a null value.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - the id of the stored object to return
<DT><B>Returns:</B><DD>the object associated with the given id</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="class-use/Document.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JDOM<br><font size='-1'>1.x-snapshot</font></b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../org/jdom/DocType.html" title="class in org.jdom"><B>PREV CLASS</B></A>
<A HREF="../../org/jdom/Element.html" title="class in org.jdom"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html?org/jdom/Document.html" target="_top"><B>FRAMES</B></A>
<A HREF="Document.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright ? 2011 Jason Hunter, Brett McLaughlin. All Rights Reserved.
</BODY>
</HTML>
|