Utility for identifying differences between two Java objects
First Claim
1. A computer implemented method for comparing a first object and a second object in an object-oriented operating system comprising the steps of:
- (a) determining whether the first object is equal to the second object; and
if said objects are not equal;
(b) obtaining one or more methods from said first object and said second object;
(c) determining whether the one or more methods from said first object are equal to the one or more methods from said second object; and
(d) recursively performing steps (b) and (c) until all of the methods for the first object and the second object have been obtained;
e) generating a document comprising a listing of differences between the methods;
(f) transforming the document into a human-readable form; and
(g) displaying the human-readable form to a user.
1 Assignment
0 Petitions
Accused Products
Abstract
A utility for comparing two objects in an object-oriented operating system that also records the differences so that they may be put into human-readable form. In one exemplary embodiment of this invention, two JAVA objects are compared by calling one of the equality methods. If the selected equality method indicates that there is a difference between the two objects, then get . . . ( ) methods of each object are invoked in turn. The results get . . . ( ) methods are compared. If there are differences, the differences are stored in an XML document. The get . . . ( ) method is recursively invoked until the Class of the result has no more get . . . ( ) methods to decompose.
13 Citations
7 Claims
-
1. A computer implemented method for comparing a first object and a second object in an object-oriented operating system comprising the steps of:
-
(a) determining whether the first object is equal to the second object; and if said objects are not equal; (b) obtaining one or more methods from said first object and said second object; (c) determining whether the one or more methods from said first object are equal to the one or more methods from said second object; and (d) recursively performing steps (b) and (c) until all of the methods for the first object and the second object have been obtained; e) generating a document comprising a listing of differences between the methods; (f) transforming the document into a human-readable form; and (g) displaying the human-readable form to a user. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
Specification