Package ch.galinet.xml.xmlmerge.action
Class OrderedMergeAction
java.lang.Object
ch.galinet.xml.xmlmerge.action.AbstractMergeAction
ch.galinet.xml.xmlmerge.action.OrderedMergeAction
- All Implemented Interfaces:
Action,MergeAction,Operation
Merge implementation traversing parallelly both element contents. Works when
contents are in the same order in both elements.
- Author:
- Laurent Bovet (LBO), Alex Mathey (AMA)
-
Field Summary
Fields inherited from class ch.galinet.xml.xmlmerge.action.AbstractMergeAction
m_actionFactory, m_mapperFactory, m_matcherFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidperform(org.jdom2.Element originalElement, org.jdom2.Element patchElement, org.jdom2.Element outputParentElement) Out of an original element and a second element provided by the patch DOM, applies an operation and modifies the parent node of the result DOM.Methods inherited from class ch.galinet.xml.xmlmerge.action.AbstractMergeAction
setActionFactory, setMapperFactory, setMatcherFactory
-
Constructor Details
-
OrderedMergeAction
public OrderedMergeAction()
-
-
Method Details
-
perform
public void perform(org.jdom2.Element originalElement, org.jdom2.Element patchElement, org.jdom2.Element outputParentElement) throws AbstractXmlMergeException Out of an original element and a second element provided by the patch DOM, applies an operation and modifies the parent node of the result DOM.- Parameters:
originalElement- Original elementpatchElement- Patch elementoutputParentElement- Output parent element- Throws:
AbstractXmlMergeException
-