org.codehaus.cargo.module.merge
Class MergeElement

java.lang.Object
  extended by org.codehaus.cargo.module.merge.AbstractMergeSet
      extended by org.codehaus.cargo.module.merge.MergeElement

public class MergeElement
extends AbstractMergeSet

MergeElement - a MergeSet that only contains one element from left or right.

Version:
$Id: $

Field Summary
 
Fields inherited from class org.codehaus.cargo.module.merge.AbstractMergeSet
inBoth, inLeftOnly, inRightOnly
 
Constructor Summary
MergeElement(org.w3c.dom.Element leftParent, org.w3c.dom.Element left, org.w3c.dom.Element right)
          Constructor.
 
Method Summary
 void add(org.w3c.dom.Element e)
          As a result of the merge, add an element to the output.
 void remove(org.w3c.dom.Element e)
          As a result of the merge, remove an element from the output.
 
Methods inherited from class org.codehaus.cargo.module.merge.AbstractMergeSet
merge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MergeElement

public MergeElement(org.w3c.dom.Element leftParent,
                    org.w3c.dom.Element left,
                    org.w3c.dom.Element right)
Constructor. NB: leftParent is needed as it is allowable for left to be null, in the event that it does not exist (And so could not be determined otherwise)

Parameters:
leftParent - in the left hand elements parent
left - in the left hand element
right - in the right hand element
Method Detail

add

public void add(org.w3c.dom.Element e)
As a result of the merge, add an element to the output.

Specified by:
add in class AbstractMergeSet
Parameters:
e - the element to be added
See Also:
AbstractMergeSet.add(org.w3c.dom.Element)

remove

public void remove(org.w3c.dom.Element e)
As a result of the merge, remove an element from the output.

Specified by:
remove in class AbstractMergeSet
Parameters:
e - the element to be removed
See Also:
AbstractMergeSet.remove(org.w3c.dom.Element)


Copyright © 2004-2009 Codehaus. All Rights Reserved.