|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.module.merge.tagstrategy.NodeMergeStrategy
public class NodeMergeStrategy
A merging strategy that can be used to combine two XML documents together.
| Constructor Summary | |
|---|---|
NodeMergeStrategy(DescriptorType type,
org.jdom.Element template)
Constructor. |
|
NodeMergeStrategy(DescriptorType type,
java.io.InputStream stream)
Constructor. |
|
| Method Summary | |
|---|---|
int |
inBoth(Descriptor target,
DescriptorElement left,
DescriptorElement right)
Process when the element appears in both descriptors. |
int |
inLeft(Descriptor target,
DescriptorElement left)
Process when the element appears just in the left descriptor. |
int |
inRight(Descriptor target,
DescriptorElement right)
Process when the element appears just in the left descriptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeMergeStrategy(DescriptorType type,
org.jdom.Element template)
type - the descriptor typetemplate - in the template to use in the merge
public NodeMergeStrategy(DescriptorType type,
java.io.InputStream stream)
throws java.io.IOException,
org.jdom.JDOMException
type - Descriptor Typestream - content input stream
java.io.IOException - if IO Exception
org.jdom.JDOMException - if parser error| Method Detail |
|---|
public int inBoth(Descriptor target,
DescriptorElement left,
DescriptorElement right)
inBoth in interface MergeStrategytarget - output descriptorleft - left elementright - right element
org.codehaus.cargo.module.merge.DescriptorMergerByTag.MergeStrategy#inBoth(org.codehaus.cargo.module.Descriptor,
org.codehaus.cargo.module.DescriptorElement,
org.codehaus.cargo.module.DescriptorElement)
public int inLeft(Descriptor target,
DescriptorElement left)
inLeft in interface MergeStrategytarget - output descriptorleft - left element
org.codehaus.cargo.module.merge.DescriptorMergerByTag.MergeStrategy#inLeft(org.codehaus.cargo.module.Descriptor,
org.codehaus.cargo.module.DescriptorElement)
public int inRight(Descriptor target,
DescriptorElement right)
inRight in interface MergeStrategytarget - output descriptorright - right element
org.codehaus.cargo.module.merge.DescriptorMergerByTag.MergeStrategy#inRight(org.codehaus.cargo.module.Descriptor,
org.codehaus.cargo.module.DescriptorElement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||