public class NodeMergeStrategy extends MergeStrategy
OVERWRITE, PRESERVE| Constructor and Description |
|---|
NodeMergeStrategy(Element template)
Constructor.
|
NodeMergeStrategy(InputStream template)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
inBoth(AbstractMergeSet set,
MergePair pair)
Deal with merging an element appears in both sets.
|
int |
inRight(AbstractMergeSet set,
Element element)
Deal with merging an element that only appears in the right set.
|
inLeftpublic NodeMergeStrategy(Element template)
template - in the template to use in the mergepublic NodeMergeStrategy(InputStream template) throws SAXException, IOException, ParserConfigurationException
template - in the template to use in the merge (XML)ParserConfigurationException - if parser errorIOException - if IO ExceptionSAXException - if SAX Exceptionpublic int inRight(AbstractMergeSet set, Element element)
inRight in class MergeStrategyset - in the calling MergeSetelement - in the item present only in the left setMergeStrategy.inRight(org.codehaus.cargo.module.merge.AbstractMergeSet, org.w3c.dom.Element)public int inBoth(AbstractMergeSet set, MergePair pair)
inBoth in class MergeStrategyset - in the calling MergeSetpair - the pair of itemsMergeStrategy.inBoth(org.codehaus.cargo.module.merge.AbstractMergeSet, org.codehaus.cargo.module.merge.MergePair)Copyright © 2004-2013 Codehaus. All Rights Reserved.