Package ch.galinet.xml.xmlmerge.factory
Class StaticOperationFactory
java.lang.Object
ch.galinet.xml.xmlmerge.factory.StaticOperationFactory
- All Implemented Interfaces:
OperationFactory
An operation factory returning always the same operation whatever the
specified elements.
- Author:
- Laurent Bovet (LBO), Alex Mathey (AMA)
-
Constructor Summary
ConstructorsConstructorDescriptionStaticOperationFactory(Operation operation) Creates a StaticOperationFactory returning the given operation. -
Method Summary
Modifier and TypeMethodDescriptiongetOperation(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.
-
Constructor Details
-
StaticOperationFactory
Creates a StaticOperationFactory returning the given operation.- Parameters:
operation- The operation operation returned by this factory.
-
-
Method Details
-
getOperation
Creates operation (action, mapper and matcher) instances corresponding to a pair of elements from the original and patch DOMs.- Specified by:
getOperationin interfaceOperationFactory- Parameters:
originalElement- Original elementmodifiedElement- Modified element- Returns:
- The operation (action, mapper or matcher) for the given element pair
-