/usr/share/doc/libxmlunit-java/api/org/custommonkey/xmlunit/Diff.html is in libxmlunit-java-doc 1.6-1.
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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Wed May 06 13:28:02 UTC 2015 -->
<title>Diff (XMLUnit Documentation)</title>
<meta name="date" content="2015-05-06">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Diff (XMLUnit Documentation)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/custommonkey/xmlunit/DetailedDiff.html" title="class in org.custommonkey.xmlunit"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../org/custommonkey/xmlunit/Difference.html" title="class in org.custommonkey.xmlunit"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/custommonkey/xmlunit/Diff.html" target="_top">Frames</a></li>
<li><a href="Diff.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.custommonkey.xmlunit</div>
<h2 title="Class Diff" class="title">Class Diff</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.custommonkey.xmlunit.Diff</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../org/custommonkey/xmlunit/ComparisonController.html" title="interface in org.custommonkey.xmlunit">ComparisonController</a>, <a href="../../../org/custommonkey/xmlunit/DifferenceListener.html" title="interface in org.custommonkey.xmlunit">DifferenceListener</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../org/custommonkey/xmlunit/DetailedDiff.html" title="class in org.custommonkey.xmlunit">DetailedDiff</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">Diff</span>
extends java.lang.Object
implements <a href="../../../org/custommonkey/xmlunit/DifferenceListener.html" title="interface in org.custommonkey.xmlunit">DifferenceListener</a>, <a href="../../../org/custommonkey/xmlunit/ComparisonController.html" title="interface in org.custommonkey.xmlunit">ComparisonController</a></pre>
<div class="block">Compares and describes any difference between XML documents.
Two documents are either:
<br /><ul>
<li><i>identical</i>: the content and sequence of the nodes in the documents
are exactly the same</li>
<li><i>similar</i>: the content of the nodes in the documents are the same,
but minor differences exist e.g. sequencing of sibling elements, values of
namespace prefixes, use of implied attribute values</li>
<li><i>different</i>: the contents of the documents are fundamentally
different</li>
</ul>
<br />
The difference between compared documents is contained in a message buffer
held in this class, accessible either through the <code>appendMessage</code>
or <code>toString</code> methods. NB: When comparing documents, the
comparison is halted as soon as the status (identical / similar / different)
is known with certainty. For a list of all differences between the documents
an instance of <a href="../../../org/custommonkey/xmlunit/DetailedDiff.html" title="class in org.custommonkey.xmlunit"><code>the DetailedDiff class</code></a> can be used
instead.
<br />Examples and more at <a href="http://xmlunit.sourceforge.net"/>xmlunit.sourceforge.net</a></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.custommonkey.xmlunit.DifferenceListener">
<!-- -->
</a>
<h3>Fields inherited from interface org.custommonkey.xmlunit.<a href="../../../org/custommonkey/xmlunit/DifferenceListener.html" title="interface in org.custommonkey.xmlunit">DifferenceListener</a></h3>
<code><a href="../../../org/custommonkey/xmlunit/DifferenceListener.html#RETURN_ACCEPT_DIFFERENCE">RETURN_ACCEPT_DIFFERENCE</a>, <a href="../../../org/custommonkey/xmlunit/DifferenceListener.html#RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL">RETURN_IGNORE_DIFFERENCE_NODES_IDENTICAL</a>, <a href="../../../org/custommonkey/xmlunit/DifferenceListener.html#RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR">RETURN_IGNORE_DIFFERENCE_NODES_SIMILAR</a>, <a href="../../../org/custommonkey/xmlunit/DifferenceListener.html#RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT">RETURN_UPGRADE_DIFFERENCE_NODES_DIFFERENT</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(org.custommonkey.xmlunit.Diff)">Diff</a></strong>(<a href="../../../org/custommonkey/xmlunit/Diff.html" title="class in org.custommonkey.xmlunit">Diff</a> prototype)</code>
<div class="block">Construct a Diff from a prototypical instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(org.w3c.dom.Document,%20org.w3c.dom.Document)">Diff</a></strong>(org.w3c.dom.Document controlDoc,
org.w3c.dom.Document testDoc)</code>
<div class="block">Construct a Diff that compares the XML in two Documents</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(org.w3c.dom.Document,%20org.w3c.dom.Document,%20org.custommonkey.xmlunit.DifferenceEngine)">Diff</a></strong>(org.w3c.dom.Document controlDoc,
org.w3c.dom.Document testDoc,
<a href="../../../org/custommonkey/xmlunit/DifferenceEngine.html" title="class in org.custommonkey.xmlunit">DifferenceEngine</a> comparator)</code>
<div class="block">Construct a Diff that compares the XML in two Documents using a specific
DifferenceEngine</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(org.w3c.dom.Document,%20org.w3c.dom.Document,%20org.custommonkey.xmlunit.DifferenceEngine,%20org.custommonkey.xmlunit.ElementQualifier)">Diff</a></strong>(org.w3c.dom.Document controlDoc,
org.w3c.dom.Document testDoc,
<a href="../../../org/custommonkey/xmlunit/DifferenceEngine.html" title="class in org.custommonkey.xmlunit">DifferenceEngine</a> comparator,
<a href="../../../org/custommonkey/xmlunit/ElementQualifier.html" title="interface in org.custommonkey.xmlunit">ElementQualifier</a> elementQualifier)</code>
<div class="block">Construct a Diff that compares the XML in two Documents using a specific
DifferenceEngine and ElementQualifier</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(javax.xml.transform.dom.DOMSource,%20javax.xml.transform.dom.DOMSource)">Diff</a></strong>(javax.xml.transform.dom.DOMSource control,
javax.xml.transform.dom.DOMSource test)</code>
<div class="block">Construct a Diff that compares the XML in two JAXP DOMSources</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(org.xml.sax.InputSource,%20org.xml.sax.InputSource)">Diff</a></strong>(org.xml.sax.InputSource control,
org.xml.sax.InputSource test)</code>
<div class="block">Construct a Diff that compares the XML read from two JAXP InputSources</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(java.io.Reader,%20java.io.Reader)">Diff</a></strong>(java.io.Reader control,
java.io.Reader test)</code>
<div class="block">Construct a Diff that compares the XML read from two Readers</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(java.lang.String,%20java.lang.String)">Diff</a></strong>(java.lang.String control,
java.lang.String test)</code>
<div class="block">Construct a Diff that compares the XML in two Strings</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code> </code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#Diff(java.lang.String,%20org.custommonkey.xmlunit.Transform)">Diff</a></strong>(java.lang.String control,
<a href="../../../org/custommonkey/xmlunit/Transform.html" title="class in org.custommonkey.xmlunit">Transform</a> testTransform)</code>
<div class="block">Construct a Diff that compares the XML in a control Document against the
result of a transformation</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.StringBuffer</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#appendMessage(java.lang.StringBuffer)">appendMessage</a></strong>(java.lang.StringBuffer toAppendTo)</code>
<div class="block">Append the message from the result of this Diff instance to a specified
StringBuffer</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#compare()">compare</a></strong>()</code>
<div class="block">Top of the recursive comparison execution tree</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#differenceFound(org.custommonkey.xmlunit.Difference)">differenceFound</a></strong>(<a href="../../../org/custommonkey/xmlunit/Difference.html" title="class in org.custommonkey.xmlunit">Difference</a> difference)</code>
<div class="block">DifferenceListener implementation.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#haltComparison(org.custommonkey.xmlunit.Difference)">haltComparison</a></strong>(<a href="../../../org/custommonkey/xmlunit/Difference.html" title="class in org.custommonkey.xmlunit">Difference</a> afterDifference)</code>
<div class="block">ComparisonController implementation.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#identical()">identical</a></strong>()</code>
<div class="block">Return the result of a comparison.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#overrideDifferenceListener(org.custommonkey.xmlunit.DifferenceListener)">overrideDifferenceListener</a></strong>(<a href="../../../org/custommonkey/xmlunit/DifferenceListener.html" title="interface in org.custommonkey.xmlunit">DifferenceListener</a> delegate)</code>
<div class="block">Override the <code>DifferenceListener</code> used to determine how
to handle differences that are found.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#overrideElementQualifier(org.custommonkey.xmlunit.ElementQualifier)">overrideElementQualifier</a></strong>(<a href="../../../org/custommonkey/xmlunit/ElementQualifier.html" title="interface in org.custommonkey.xmlunit">ElementQualifier</a> delegate)</code>
<div class="block">Override the <code>ElementQualifier</code> used to determine which
control and test nodes are comparable for this difference comparison.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#overrideMatchTracker(org.custommonkey.xmlunit.MatchTracker)">overrideMatchTracker</a></strong>(<a href="../../../org/custommonkey/xmlunit/MatchTracker.html" title="interface in org.custommonkey.xmlunit">MatchTracker</a> delegate)</code>
<div class="block">Override the <code>MatchTracker</code> used to track
successfully matched nodes.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#similar()">similar</a></strong>()</code>
<div class="block">Return the result of a comparison.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#skippedComparison(org.w3c.dom.Node,%20org.w3c.dom.Node)">skippedComparison</a></strong>(org.w3c.dom.Node control,
org.w3c.dom.Node test)</code>
<div class="block">DifferenceListener implementation.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../org/custommonkey/xmlunit/Diff.html#toString()">toString</a></strong>()</code>
<div class="block">Get the result of this Diff instance as a String</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="Diff(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(java.lang.String control,
java.lang.String test)
throws org.xml.sax.SAXException,
java.io.IOException</pre>
<div class="block">Construct a Diff that compares the XML in two Strings</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>org.xml.sax.SAXException</code></dd>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="Diff(java.io.Reader, java.io.Reader)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(java.io.Reader control,
java.io.Reader test)
throws org.xml.sax.SAXException,
java.io.IOException</pre>
<div class="block">Construct a Diff that compares the XML read from two Readers</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>org.xml.sax.SAXException</code></dd>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="Diff(org.w3c.dom.Document, org.w3c.dom.Document)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(org.w3c.dom.Document controlDoc,
org.w3c.dom.Document testDoc)</pre>
<div class="block">Construct a Diff that compares the XML in two Documents</div>
</li>
</ul>
<a name="Diff(java.lang.String, org.custommonkey.xmlunit.Transform)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(java.lang.String control,
<a href="../../../org/custommonkey/xmlunit/Transform.html" title="class in org.custommonkey.xmlunit">Transform</a> testTransform)
throws java.io.IOException,
javax.xml.transform.TransformerException,
org.xml.sax.SAXException</pre>
<div class="block">Construct a Diff that compares the XML in a control Document against the
result of a transformation</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd>
<dd><code>javax.xml.transform.TransformerException</code></dd>
<dd><code>org.xml.sax.SAXException</code></dd></dl>
</li>
</ul>
<a name="Diff(org.xml.sax.InputSource, org.xml.sax.InputSource)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(org.xml.sax.InputSource control,
org.xml.sax.InputSource test)
throws org.xml.sax.SAXException,
java.io.IOException</pre>
<div class="block">Construct a Diff that compares the XML read from two JAXP InputSources</div>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>org.xml.sax.SAXException</code></dd>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="Diff(javax.xml.transform.dom.DOMSource, javax.xml.transform.dom.DOMSource)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(javax.xml.transform.dom.DOMSource control,
javax.xml.transform.dom.DOMSource test)</pre>
<div class="block">Construct a Diff that compares the XML in two JAXP DOMSources</div>
</li>
</ul>
<a name="Diff(org.w3c.dom.Document, org.w3c.dom.Document, org.custommonkey.xmlunit.DifferenceEngine)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(org.w3c.dom.Document controlDoc,
org.w3c.dom.Document testDoc,
<a href="../../../org/custommonkey/xmlunit/DifferenceEngine.html" title="class in org.custommonkey.xmlunit">DifferenceEngine</a> comparator)</pre>
<div class="block">Construct a Diff that compares the XML in two Documents using a specific
DifferenceEngine</div>
</li>
</ul>
<a name="Diff(org.w3c.dom.Document, org.w3c.dom.Document, org.custommonkey.xmlunit.DifferenceEngine, org.custommonkey.xmlunit.ElementQualifier)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Diff</h4>
<pre>public Diff(org.w3c.dom.Document controlDoc,
org.w3c.dom.Document testDoc,
<a href="../../../org/custommonkey/xmlunit/DifferenceEngine.html" title="class in org.custommonkey.xmlunit">DifferenceEngine</a> comparator,
<a href="../../../org/custommonkey/xmlunit/ElementQualifier.html" title="interface in org.custommonkey.xmlunit">ElementQualifier</a> elementQualifier)</pre>
<div class="block">Construct a Diff that compares the XML in two Documents using a specific
DifferenceEngine and ElementQualifier</div>
</li>
</ul>
<a name="Diff(org.custommonkey.xmlunit.Diff)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Diff</h4>
<pre>protected Diff(<a href="../../../org/custommonkey/xmlunit/Diff.html" title="class in org.custommonkey.xmlunit">Diff</a> prototype)</pre>
<div class="block">Construct a Diff from a prototypical instance.
Used by extension subclasses</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>prototype</code> - a prototypical instance</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="compare()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre>protected final void compare()</pre>
<div class="block">Top of the recursive comparison execution tree</div>
</li>
</ul>
<a name="similar()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>similar</h4>
<pre>public boolean similar()</pre>
<div class="block">Return the result of a comparison. Two documents are considered
to be "similar" if they contain the same elements and attributes
regardless of order.</div>
</li>
</ul>
<a name="identical()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>identical</h4>
<pre>public boolean identical()</pre>
<div class="block">Return the result of a comparison. Two documents are considered
to be "identical" if they contain the same elements and attributes
in the same order.</div>
</li>
</ul>
<a name="differenceFound(org.custommonkey.xmlunit.Difference)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>differenceFound</h4>
<pre>public int differenceFound(<a href="../../../org/custommonkey/xmlunit/Difference.html" title="class in org.custommonkey.xmlunit">Difference</a> difference)</pre>
<div class="block">DifferenceListener implementation.
If the <a href="../../../org/custommonkey/xmlunit/Diff.html#overrideDifferenceListener(org.custommonkey.xmlunit.DifferenceListener)"><code>overrideDifferenceListener</code></a>
method has been called then the interpretation of the difference
will be delegated.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/custommonkey/xmlunit/DifferenceListener.html#differenceFound(org.custommonkey.xmlunit.Difference)">differenceFound</a></code> in interface <code><a href="../../../org/custommonkey/xmlunit/DifferenceListener.html" title="interface in org.custommonkey.xmlunit">DifferenceListener</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>difference</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>a DifferenceListener.RETURN_... constant indicating how the
difference was interpreted.
Always RETURN_ACCEPT_DIFFERENCE if the call is not delegated.</dd></dl>
</li>
</ul>
<a name="skippedComparison(org.w3c.dom.Node, org.w3c.dom.Node)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>skippedComparison</h4>
<pre>public void skippedComparison(org.w3c.dom.Node control,
org.w3c.dom.Node test)</pre>
<div class="block">DifferenceListener implementation.
If the <a href="../../../org/custommonkey/xmlunit/Diff.html#overrideDifferenceListener(org.custommonkey.xmlunit.DifferenceListener)"><code>overrideDifferenceListener</code></a>
method has been called then the call will be delegated
otherwise a message is printed to <code>System.err</code>.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/custommonkey/xmlunit/DifferenceListener.html#skippedComparison(org.w3c.dom.Node,%20org.w3c.dom.Node)">skippedComparison</a></code> in interface <code><a href="../../../org/custommonkey/xmlunit/DifferenceListener.html" title="interface in org.custommonkey.xmlunit">DifferenceListener</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>control</code> - </dd><dd><code>test</code> - </dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/custommonkey/xmlunit/DifferenceEngine.html" title="class in org.custommonkey.xmlunit"><code>DifferenceEngine</code></a></dd></dl>
</li>
</ul>
<a name="haltComparison(org.custommonkey.xmlunit.Difference)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>haltComparison</h4>
<pre>public boolean haltComparison(<a href="../../../org/custommonkey/xmlunit/Difference.html" title="class in org.custommonkey.xmlunit">Difference</a> afterDifference)</pre>
<div class="block">ComparisonController implementation.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../org/custommonkey/xmlunit/ComparisonController.html#haltComparison(org.custommonkey.xmlunit.Difference)">haltComparison</a></code> in interface <code><a href="../../../org/custommonkey/xmlunit/ComparisonController.html" title="interface in org.custommonkey.xmlunit">ComparisonController</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>afterDifference</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>true if the difference is not recoverable and
the comparison should be halted, or false if the difference
is recoverable and the comparison can continue</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../org/custommonkey/xmlunit/Difference.html#isRecoverable()"><code>Difference.isRecoverable()</code></a></dd></dl>
</li>
</ul>
<a name="appendMessage(java.lang.StringBuffer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendMessage</h4>
<pre>public java.lang.StringBuffer appendMessage(java.lang.StringBuffer toAppendTo)</pre>
<div class="block">Append the message from the result of this Diff instance to a specified
StringBuffer</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>toAppendTo</code> - </dd>
<dt><span class="strong">Returns:</span></dt><dd>specified StringBuffer with message appended</dd></dl>
</li>
</ul>
<a name="toString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public java.lang.String toString()</pre>
<div class="block">Get the result of this Diff instance as a String
<p><b>Note:</b></p> This method will perform the comparison and
cache the result if it hasn't been performed already. Any
configuration changes made after calling this method will be
ignored.</p></div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code> in class <code>java.lang.Object</code></dd>
<dt><span class="strong">Returns:</span></dt><dd>result of this Diff</dd></dl>
</li>
</ul>
<a name="overrideDifferenceListener(org.custommonkey.xmlunit.DifferenceListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>overrideDifferenceListener</h4>
<pre>public void overrideDifferenceListener(<a href="../../../org/custommonkey/xmlunit/DifferenceListener.html" title="interface in org.custommonkey.xmlunit">DifferenceListener</a> delegate)</pre>
<div class="block">Override the <code>DifferenceListener</code> used to determine how
to handle differences that are found.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>delegate</code> - the DifferenceListener instance to delegate handling to.</dd></dl>
</li>
</ul>
<a name="overrideElementQualifier(org.custommonkey.xmlunit.ElementQualifier)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>overrideElementQualifier</h4>
<pre>public void overrideElementQualifier(<a href="../../../org/custommonkey/xmlunit/ElementQualifier.html" title="interface in org.custommonkey.xmlunit">ElementQualifier</a> delegate)</pre>
<div class="block">Override the <code>ElementQualifier</code> used to determine which
control and test nodes are comparable for this difference comparison.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>delegate</code> - the ElementQualifier instance to delegate to.</dd></dl>
</li>
</ul>
<a name="overrideMatchTracker(org.custommonkey.xmlunit.MatchTracker)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>overrideMatchTracker</h4>
<pre>public void overrideMatchTracker(<a href="../../../org/custommonkey/xmlunit/MatchTracker.html" title="interface in org.custommonkey.xmlunit">MatchTracker</a> delegate)</pre>
<div class="block">Override the <code>MatchTracker</code> used to track
successfully matched nodes.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>delegate</code> - the MatchTracker instance to delegate handling to.</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><p><a href="http://xmlunit.sourceforge.net/">XMLUnit</a> is hosted by sourceforge.net</p></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../org/custommonkey/xmlunit/DetailedDiff.html" title="class in org.custommonkey.xmlunit"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../org/custommonkey/xmlunit/Difference.html" title="class in org.custommonkey.xmlunit"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?org/custommonkey/xmlunit/Diff.html" target="_top">Frames</a></li>
<li><a href="Diff.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|