public final class Delta extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Delta.DeltaKind
An enumeration of possible kind of deltas.
|
Constructor and Description |
---|
Delta(File project,
File referrerFolder,
File delta,
Delta.DeltaKind deltaKind,
FolderKind refererFolderKind)
Instantiates a new delta on given file.
|
Modifier and Type | Method and Description |
---|---|
File |
getDelta()
Gets the resource that have been modified.
|
Delta.DeltaKind |
getDeltaKind()
Gets the kind of this delta.
|
File |
getProject()
Gets the root folder of the project that holds the resource of this delta.
|
File |
getReferrerFolder()
Gets the referrer folder of this delta.
|
FolderKind |
getReferrerFolderKind()
Gets the kind of the referrer folder of this delta.
|
public Delta(File project, File referrerFolder, File delta, Delta.DeltaKind deltaKind, FolderKind refererFolderKind)
project
- the project associated with this delta.referrerFolder
- the folder that holds the created delta.delta
- the delta file.deltaKind
- the kind of changed applied to the delta file.refererFolderKind
- the referrer folder kind.public File getDelta()
public Delta.DeltaKind getDeltaKind()
public File getProject()
public File getReferrerFolder()
For example, for a Java source file creation, the referrer folder is the source folder that contains the created Java source file.
public FolderKind getReferrerFolderKind()