19package org.openoffice.xmerge.merger.diff;
21import org.w3c.dom.Node;
22import org.w3c.dom.Element;
69 return node.getNodeType() == Node.ELEMENT_NODE &&
76 boolean equal =
false;
78 if (node1.hasChildNodes() && node2.hasChildNodes()) {
79 Element cell1 = (Element)node1;
80 Element cell2 = (Element)node2;
86 Node paraNode1 = cell1.getElementsByTagName(
88 Node paraNode2 = cell2.getElementsByTagName(
91 equal = super.compareNode(paraNode1, paraNode2);
This is an implementations of the Iterator interface.
static final String SUPPORTED_TAG1
boolean childrenEqual(Node node1, Node node2)
Compare the children of two Node objects.
CellNodeIterator(ConverterCapabilities cc, Node node)
The standard constructor.
boolean nodeSupported(Node node)
Overwrite the parent nodeSupported method.
This is an implementation of the Iterator interface.
A ConverterCapabilities object is used by DocumentMerger implementations.
This interface contains constants for StarOffice XML tags, attributes (StarCalc cell types,...
String TAG_TABLE_CELL
Element tag for table:table-cell.
String TAG_PARAGRAPH
Element tag for text:p.
Document and PluginFactory implementations for XML based formats.
Provides interfaces for converting between two Document formats, and supports a "merge" interface for...