ch.elca.el4j.services.xmlmerge.action
Class OrderedMergeAction

java.lang.Object
  extended by ch.elca.el4j.services.xmlmerge.action.AbstractMergeAction
      extended by ch.elca.el4j.services.xmlmerge.action.OrderedMergeAction
All Implemented Interfaces:
Action, MergeAction, Operation

public class OrderedMergeAction
extends AbstractMergeAction

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)
File-location:
OrderedMergeAction
Last check-in date:
2009-08-04 15:24:14 +0200 (Di, 04. Aug 2009) by swismer for revision 3882

Field Summary
 
Fields inherited from class ch.elca.el4j.services.xmlmerge.action.AbstractMergeAction
m_actionFactory, m_mapperFactory, m_matcherFactory
 
Constructor Summary
OrderedMergeAction()
           
 
Method Summary
 void perform(org.jdom.Element originalElement, org.jdom.Element patchElement, org.jdom.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.elca.el4j.services.xmlmerge.action.AbstractMergeAction
setActionFactory, setMapperFactory, setMatcherFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderedMergeAction

public OrderedMergeAction()
Method Detail

perform

public void perform(org.jdom.Element originalElement,
                    org.jdom.Element patchElement,
                    org.jdom.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 element
patchElement - Patch element
outputParentElement - Output parent element
Throws:
AbstractXmlMergeException


Copyright © 2005-2011 ELCA. All Rights Reserved.