LibreOffice Module xmerge (master) 1
Static Public Member Functions | Static Private Member Functions | List of all members
org.openoffice.xmerge.util.XmlUtil Class Reference

Class containing static utility methods for handling XML trees. More...

Static Public Member Functions

static Node deepClone (Node oldNode, Node newNode)
 Perform a deep clone of certain Node which will base on the document Node of the old Node. More...
 
static String getNodeInfo (Node node)
 Returns the name and type of an XML DOM Node. More...
 

Static Private Member Functions

static void cloneTree (Document docNode, Node oldNode, Node newNode)
 Clone the sub-tree under certain given Node. More...
 
static Node cloneNode (Document docNode, Node newNode)
 Clone a Node (either text or element). More...
 

Detailed Description

Class containing static utility methods for handling XML trees.

Definition at line 30 of file XmlUtil.java.

Member Function Documentation

◆ cloneNode()

static Node org.openoffice.xmerge.util.XmlUtil.cloneNode ( Document  docNode,
Node  newNode 
)
inlinestaticprivate

Clone a Node (either text or element).

Parameters
docNodeThe Document used to clone the Node.
newNodeThe Nodeto clone.
Returns
The cloned Node.

Definition at line 85 of file XmlUtil.java.

References i, and String.

Referenced by org.openoffice.xmerge.util.XmlUtil.cloneTree(), and org.openoffice.xmerge.util.XmlUtil.deepClone().

◆ cloneTree()

static void org.openoffice.xmerge.util.XmlUtil.cloneTree ( Document  docNode,
Node  oldNode,
Node  newNode 
)
inlinestaticprivate

Clone the sub-tree under certain given Node.

Parameters
docNodeThe Document used to clone the Node.
oldNodeThe Node to clone.
newNodeThe destination Node.

Definition at line 63 of file XmlUtil.java.

References org.openoffice.xmerge.util.XmlUtil.cloneNode(), org.openoffice.xmerge.util.XmlUtil.cloneTree(), and i.

Referenced by org.openoffice.xmerge.util.XmlUtil.cloneTree(), and org.openoffice.xmerge.util.XmlUtil.deepClone().

◆ deepClone()

static Node org.openoffice.xmerge.util.XmlUtil.deepClone ( Node  oldNode,
Node  newNode 
)
inlinestatic

◆ getNodeInfo()

static String org.openoffice.xmerge.util.XmlUtil.getNodeInfo ( Node  node)
inlinestatic

The documentation for this class was generated from the following file: