|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.patch.PatchEngine
public class PatchEngine
PatchEngine
is the engine for creating, matching and applying a PatchModel
to the context provided by a PatchContributor
.
Constructor Summary | |
---|---|
PatchEngine(PatchContributor toFileContributor) Constructs a new PatchEngine for the given contributor. |
Method Summary | |
---|---|
void |
addPatchListener(PatchListener l) Adds a listener to the engine for receiving PatchEvent s. |
void |
applyModel(PatchModel patchModel, PatchContext patchContext, PatchApplyOptions applyOptions) Applies the given PatchModel to the engine's to-file contributor, according to options. |
PatchModel |
createModel(PatchContributor fromFileContributor, PatchCreateOptions createOptions) Creates a PatchModel based on differences between the given contributor and the engine's to-file contributor, according to options. |
static PatchEntry |
createPatchEntry(oracle.javatools.compare.algorithm.sequence.SequenceCompareModel compareModel) |
PatchContext |
matchModel(PatchModel patchModel, PatchMatchOptions matchOptions) Matches the given PatchModel against the engine's to-file contributor, according to options. |
void |
removePatchListener(PatchListener l) Removes a listener from the engine for receiving PatchEvent s. |
PatchModel |
reverseModel(PatchModel patchModel, java.lang.String fromFileBaseDirectoryPath) Reverses the information contained in the given PatchModel . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatchEngine(PatchContributor toFileContributor)
PatchEngine
for the given contributor.
toFileContributor
- the to-file (or single) contributor.Method Detail |
---|
public void addPatchListener(PatchListener l)
PatchEvent
s.l
- the listener.public void removePatchListener(PatchListener l)
PatchEvent
s.l
- the listener.public PatchModel createModel(PatchContributor fromFileContributor, PatchCreateOptions createOptions) throws java.io.IOException, CompareFailedException
PatchModel
based on differences between the given contributor and the engine's to-file contributor, according to options.fromFileContributor
- the from-file contributor.createOptions
- the patch creation options.java.io.IOException
- if an I/O exception occurred while reading a file.CompareFailedException
- if a file comparison failed.public PatchContext matchModel(PatchModel patchModel, PatchMatchOptions matchOptions) throws java.io.IOException
PatchModel
against the engine's to-file contributor, according to options.patchModel
- the patch model.matchOptions
- the patch match options.java.io.IOException
- if an I/O exception occurred while reading a file.public void applyModel(PatchModel patchModel, PatchContext patchContext, PatchApplyOptions applyOptions) throws java.io.IOException
PatchModel
to the engine's to-file contributor, according to options.patchModel
- the patch model.patchContext
- the context describing the match.applyOptions
- the patch apply options.java.io.IOException
- if an I/O exception occurred while creating, writing or reading a file.public PatchModel reverseModel(PatchModel patchModel, java.lang.String fromFileBaseDirectoryPath)
PatchModel
.patchModel
- the patch model.fromFileBaseDirectoryPath
- the from-file base directory path.public static final PatchEntry createPatchEntry(oracle.javatools.compare.algorithm.sequence.SequenceCompareModel compareModel)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |