LibreOffice Module xmerge (master) 1
|
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... | |
Class containing static utility methods for handling XML trees.
Definition at line 30 of file XmlUtil.java.
|
inlinestaticprivate |
Clone a Node
(either text or element).
docNode | The Document used to clone the Node . |
newNode | The Node to clone. |
Node
. Definition at line 85 of file XmlUtil.java.
Referenced by org.openoffice.xmerge.util.XmlUtil.cloneTree(), and org.openoffice.xmerge.util.XmlUtil.deepClone().
|
inlinestaticprivate |
Clone the sub-tree under certain given Node
.
docNode | The Document used to clone the Node . |
oldNode | The Node to clone. |
newNode | The 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().
|
inlinestatic |
Perform a deep clone of certain Node
which will base on the document Node
of the old Node
.
oldNode | The Document of this Node is used to clone the Node . |
newNode | The Node to clone. |
Node
. Definition at line 42 of file XmlUtil.java.
References org.openoffice.xmerge.util.XmlUtil.cloneNode(), and org.openoffice.xmerge.util.XmlUtil.cloneTree().
Referenced by org.openoffice.xmerge.merger.merge.DocumentMerge.appendNode(), org.openoffice.xmerge.merger.merge.DocumentMerge.insertNode(), org.openoffice.xmerge.converter.xml.sxc.DocumentMergerImpl.merge(), org.openoffice.xmerge.merger.merge.PositionBaseRowMerge.mergeCells(), org.openoffice.xmerge.merger.merge.PositionBaseRowMerge.mergeCellSequences(), and org.openoffice.xmerge.merger.merge.DocumentMerge.replaceElement().
|
inlinestatic |
Returns the name and type of an XML DOM Node
.
node | Node to query. |
Node
. Definition at line 120 of file XmlUtil.java.
References String.
Referenced by org.openoffice.xmerge.converter.xml.sxc.BookSettings.readNode(), org.openoffice.xmerge.converter.xml.sxc.NameDefinition.readNode(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentSerializer.traverseBody(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentSerializer.traverseSettings(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentSerializer.traverseTable(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentSerializer.traverseTableRow().