public abstract class Diff extends Object implements IDiff
IDiff that can be subclassed by
clients.ITwoWayDiff,
IThreeWayDiff| Modifier and Type | Field and Description |
|---|---|
static int |
KIND_MASK
Constant (bit mask) that defines the area of the status that is reserved
for use by this abstract class for encoding the kind of the diff.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Diff(IPath path,
int status)
Create a diff node.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getKind()
Returns the kind of this diff.
|
IPath |
getPath()
Returns the full, absolute path of the object to which the diff applies
with respect to the model root.
|
int |
getStatus()
Return the status of the diff node.
|
String |
toDiffString()
Return a string that describes the difference represented by
this node.
|
public static final int KIND_MASK
getStatus(),
Constant Field Valuesprotected Diff(IPath path, int status)
path - the path of the diffstatus - the status of the diff. The kind should be encoded in the
status along with any additional flags required by a subclass.public IPath getPath()
IDiffNote: the returned path never has a trailing separator.
public int getKind()
IDiffADDED, REMOVED, CHANGED.getKind in interface IDiffIDiff.ADD,
IDiff.REMOVE,
IDiff.CHANGEpublic final int getStatus()
KIND_MASK.public String toDiffString()
IDifftoDiffString in interface IDiffGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.