public class PatchContributor
extends java.lang.Object
PatchEngine instance.| Constructor and Description |
|---|
PatchContributor(java.io.File directoryFile)
Constructs a new
PatchContributor for the given directory. |
PatchContributor(java.io.File directoryFile,
java.lang.String argumentFilePath)
Constructs a new
PatchContributor for the given directory and
argument file path. |
| Modifier and Type | Method and Description |
|---|---|
protected PatchIndexFile |
constructIndexFile(java.lang.String path)
Constructs an index file object representing the given file path.
|
protected PatchIndexFile |
constructIndexFileImpl(java.io.File directoryFile,
java.lang.String path)
Constructs an index file object representing the given directory and path.
|
java.lang.String |
getArgumentFilePath()
Gets the argument file path for file contribution.
|
protected java.lang.String |
getBaseDirectoryPath()
Gets the base directory path for file contribution.
|
java.io.File |
getDirectoryFile()
Gets the working directory file for file contribution.
|
protected java.lang.String |
getFilePath()
Gets the single file path for file contribution.
|
protected boolean |
isArgumentDirectory()
Gets whether the argument file exists on the filesystem as a directory.
|
protected boolean |
isArgumentFileExists()
Gets whether the argument file exists on the filesystem.
|
protected java.lang.String[] |
listFilePaths(boolean recursive)
Lists contributed file paths for comparison.
|
public PatchContributor(java.io.File directoryFile)
PatchContributor for the given directory.directoryFile - the working directory file.public PatchContributor(java.io.File directoryFile,
java.lang.String argumentFilePath)
PatchContributor for the given directory and
argument file path.directoryFile - the working directory file.argumentFilePath - the path of file(s) to contribute.public java.io.File getDirectoryFile()
public java.lang.String getArgumentFilePath()
protected java.lang.String getBaseDirectoryPath()
PatchEngine.createModel(oracle.javatools.patch.PatchStreamContributor, oracle.javatools.patch.PatchCreateOptions).null if the argument is not a directory.protected java.lang.String getFilePath()
PatchEngine.createModel(oracle.javatools.patch.PatchStreamContributor, oracle.javatools.patch.PatchCreateOptions).null if the argument is not a regular file.protected java.lang.String[] listFilePaths(boolean recursive)
PatchEngine.createModel(oracle.javatools.patch.PatchStreamContributor, oracle.javatools.patch.PatchCreateOptions).recursive - true if directories should be listed recursively.protected PatchIndexFile constructIndexFile(java.lang.String path)
path - the file path.protected PatchIndexFile constructIndexFileImpl(java.io.File directoryFile, java.lang.String path)
directoryFile - the working directory file.path - the path.protected boolean isArgumentFileExists()
true if the file exists.protected boolean isArgumentDirectory()
true if the file exists as a directory.