public class Merger
extends java.lang.Object
Constructor and Description |
---|
Merger() |
Modifier and Type | Method and Description |
---|---|
static org.w3c.dom.Element |
cloneElement(org.w3c.dom.Document doc,
org.w3c.dom.Element elem) |
static java.util.HashMap |
getMergingElement(org.w3c.dom.Element dest,
org.w3c.dom.Element source)
Get all merging element in Hahsmap (key=name value=node) from the destination that are required from source.
|
static void |
main(java.lang.String[] args) |
static org.w3c.dom.Document |
mergeConfig(org.w3c.dom.Document c1,
org.w3c.dom.Document c2)
Merge the given configurations.
|
static void |
mergeElement(org.w3c.dom.Element dest,
org.w3c.dom.Element source)
Merge the given dest node to the given source node.
|
public static org.w3c.dom.Document mergeConfig(org.w3c.dom.Document c1, org.w3c.dom.Document c2) throws java.lang.Exception
c1
- configurationc2
- configurationan
- exception if something is wrong.java.lang.Exception
public static void mergeElement(org.w3c.dom.Element dest, org.w3c.dom.Element source)
public static org.w3c.dom.Element cloneElement(org.w3c.dom.Document doc, org.w3c.dom.Element elem)
public static java.util.HashMap getMergingElement(org.w3c.dom.Element dest, org.w3c.dom.Element source)
public static void main(java.lang.String[] args)