|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.merger.Difference
This is the Difference
basic unit. Used by the
DiffAlgorithm
as a set of difference between two
Iterators
(the original and modified
Iterators
).
Field Summary | |
static int |
ADD
Add operation. |
static int |
CHANGE
Change operation. |
static int |
DELETE
Delete operation. |
static int |
UNCHANGE
Unchange operation (i.e. |
Constructor Summary | |
Difference(int operation,
int orgPosition,
int modPosition)
Constructor. |
Method Summary | |
java.lang.String |
debug()
Display debug information. |
boolean |
equals(java.lang.Object obj)
Two Difference objects will equal if and only if
all operation, orgPosition, modPosition and content are equal. |
int |
getModPosition()
Get the modified Iterator position. |
int |
getOperation()
Get the operation of the Difference . |
int |
getOrgPosition()
Get the original Iterator position. |
java.lang.String |
toString()
Returns position and operation values as a single string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ADD
public static final int CHANGE
public static final int DELETE
public static final int UNCHANGE
Constructor Detail |
public Difference(int operation, int orgPosition, int modPosition)
Difference
object.operation
- Either ADD
or DELETE
.orgPosition
- The position in the original (first)
Iterator
.modPosition
- The position in the modified (second)
Iterator
.Method Detail |
public java.lang.String debug()
public boolean equals(java.lang.Object obj)
Difference
objects will equal if and only if
all operation, orgPosition, modPosition and content are equal.equals
in class java.lang.Object
obj
- Object to compare.public int getModPosition()
Iterator
position.Iterator
public int getOperation()
Difference
.Difference
,
either ADD
or DELETE
public int getOrgPosition()
Iterator
position.Iterator
public java.lang.String toString()
toString
in class java.lang.Object
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |