public class XcasDiff extends Object
XcasDiff
object represents the comparison results of
two XCAS files. It also provides methods to output these results.Constructor and Description |
---|
XcasDiff()
Default constructor.
|
XcasDiff(XcasFile xf1,
XcasFile xf2)
Construct an
XCASDiff object from two XcasFile
objects. |
Modifier and Type | Method and Description |
---|---|
void |
printCommon()
Prints common elements along with their attributes in the two XCAS files
to
stdout . |
void |
printDiff()
Prints elements that are unique to each XCAS file to
stdout . |
static void |
printDiff(XcasFile f1,
XcasFile f2)
Prints elements that are unique to each XCAS file to
stdout . |
void |
printHTML(Writer w)
Writes an HTML summary of the comparison of the two XCAS files.
|
static void |
printHTML(XcasFile f1,
XcasFile f2,
Writer w)
Writes an HTML summary of the comparison of the two specified XCAS files.
|
void |
printUniq(int i)
Prints elements that are unique to XCAS file
i . |
void |
recalculate()
Calculates the differences or recalculates after the two files are updated.
|
public final void recalculate()
public void printCommon()
stdout
.public void printDiff()
stdout
.public void printUniq(int i)
i
.i
- XCAS file number, specified when constructing this object,
can only be 1 or 2.public void printHTML(Writer w)
w
- An Writer
object to write to.public static void printDiff(XcasFile f1, XcasFile f2)
stdout
.
First constructs an anonymous XcasDiff
object, and calls its
printDiff()
. Avoid using this method if you plan to use
XcasDiff
object later.f1
- An XcasFile
object.f2
- Another XcasFile
object.printDiff()
public static void printHTML(XcasFile f1, XcasFile f2, Writer w)
XcasDiff
object, and calls its
printHTML(Writer)
. Avoid using this method if you plan to use
XcasDiff
object later.f1
- An XcasFile
object.f2
- Another XcasFile
object.w
- An Writer
object to write to.Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.