| Modifier and Type | Interface and Description |
|---|---|
interface |
Action
Operation on two nodes creating a third node.
|
interface |
Mapper
Transforms an element to another element by changing some nested content or attributes.
|
interface |
Matcher
Compares two elements to know if they correspond for merging.
|
interface |
MergeAction
An action merging the contents of the specified elements.
|
| Modifier and Type | Method and Description |
|---|---|
Operation |
OperationFactory.getOperation(org.jdom2.Element originalElement,
org.jdom2.Element modifiedElement)
Creates operation (action, mapper and matcher) instances corresponding to a pair of elements
from the original and patch DOMs.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMergeAction
Gathers the operation factory-related behaviour and a default configuration.
|
class |
CompleteAction
Copies the patch element only if it does not exist in the orginal document.
|
class |
DeleteAction
Keeps the original element only if it does not appear in the patch document.
|
class |
DtdInsertAction
Copy the patch element in the output parent with the correct position according to the DTD
declared in doctype.
|
class |
FullMergeAction
Merge implementation traversing element contents undependend of their order.
|
class |
InsertAction
Copies the patch element into the output by inserting it after already existing elements of the
same name.
|
class |
KeepAction
Copies the patch element if it exists also in original, otherwise nothing is added.
|
class |
OrderedMergeAction
Merge implementation traversing parallelly both element contents.
|
class |
OverrideAction
Copies the patch element if it exist in the original, keep the original if no corresponding patch
element exists.
|
class |
PreserveAction
Copies the original regardless of the existence of patch element.
|
class |
ReplaceAction
Copies the patch element if it exists.
|
| Modifier and Type | Method and Description |
|---|---|
Operation |
DiffOperationFactory.getOperation(org.jdom2.Element originalElement,
org.jdom2.Element patchElement) |
Operation |
AttributeOperationFactory.getOperation(org.jdom2.Element originalElement,
org.jdom2.Element modifiedElement) |
Operation |
XPathOperationFactory.getOperation(org.jdom2.Element originalElement,
org.jdom2.Element patchElement) |
Operation |
StaticOperationFactory.getOperation(org.jdom2.Element originalElement,
org.jdom2.Element modifiedElement) |
Operation |
OperationResolver.resolve(String aliasOrClassName)
Resolves an alias or an operation class name to an operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XPathOperationFactory.setDefaultOperation(Operation operation)
Sets the default operation returned by this factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XPathOperationFactory.setOperationMap(Map<String,Operation> map)
Sets the factory's map containing configuration properties.
|
| Constructor and Description |
|---|
AttributeOperationFactory(Operation defaultOperation,
OperationResolver resolver,
String keyword,
String namespace)
Creates a new AttributeOperationFactory.
|
StaticOperationFactory(Operation operation)
Creates a StaticOperationFactory returning the given operation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
IdentityMapper
Does not transform the element.
|
class |
NamespaceFilterMapper
Filters out elements and attributes with a specified namespace.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractAttributeMatcher
Elements match if their name and a certain attribute value are the same.
|
class |
AbstractTagMatcher
Compares the qualified name of elements.
|
class |
AttributeMatcher
Compares the qualified name of elements, their attributes and their attribute values.
|
class |
IdAttributeMatcher
Elements match if their name and 'id' attribute are the same.
|
class |
NameAttributeMatcher
Elements match if their name and 'name' attribute are the same.
|
class |
SkipMatcher
Elements compared with this matcher never match.
|
class |
TagMatcher
Compares the qualified name of elements.
|
Copyright © 2001–2025. All rights reserved.