public class DiffOperationFactory extends Object implements OperationFactory
| Constructor and Description |
|---|
DiffOperationFactory() |
| Modifier and Type | Method and Description |
|---|---|
Operation |
getOperation(org.jdom2.Element originalElement,
org.jdom2.Element patchElement)
Creates operation (action, mapper and matcher) instances corresponding to a pair of elements
from the original and patch DOMs.
|
void |
setInBothOperationFactory(OperationFactory inBothOperationFactory)
Sets the operation factory this factory delegates to if the original and patch elements
exist.
|
void |
setOnlyInOriginalOperationFactory(OperationFactory onlyInOriginalOperationFactory)
Sets the operation factory this factory delegates to if only the original element exists.
|
void |
setOnlyInPatchOperationFactory(OperationFactory onlyInPatchOperationFactory)
Sets the operation factory this factory delegates to if only the patch element exists.
|
public void setInBothOperationFactory(OperationFactory inBothOperationFactory)
inBothOperationFactory - the operation factory this factory delegates to if the original
and patch elements exist.public void setOnlyInOriginalOperationFactory(OperationFactory onlyInOriginalOperationFactory)
onlyInOriginalOperationFactory - factory this factory delegates to if only the original
element existspublic void setOnlyInPatchOperationFactory(OperationFactory onlyInPatchOperationFactory)
onlyInPatchOperationFactory - factory this factory delegates to if only the patch
element existspublic Operation getOperation(org.jdom2.Element originalElement, org.jdom2.Element patchElement) throws AbstractXmlMergeException
OperationFactorygetOperation in interface OperationFactoryoriginalElement - Original elementpatchElement - Modified elementAbstractXmlMergeException - If an error occurs during operation creationCopyright © 2001–2025. All rights reserved.