Class CompleteAction

java.lang.Object
ch.galinet.xml.xmlmerge.action.CompleteAction
All Implemented Interfaces:
Action, Operation

public class CompleteAction extends Object implements Action
Copies the patch element only if it does not exist in the orginal document.
Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    perform(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 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CompleteAction

      public CompleteAction()
  • Method Details

    • perform

      public void perform(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.
      Specified by:
      perform in interface Action
      Parameters:
      originalElement - Original element
      patchElement - Patch element
      outputParentElement - Output parent element