19package org.openoffice.xmerge.merger.diff;
21import org.w3c.dom.Node;
25import java.util.ArrayList;
57 nodeList_ =
new ArrayList<TextNodeEntry>();
83 StringBuffer strBuf =
new StringBuffer();
93 String nodeName = currentNode.getNodeName();
96 if (currentNode.getNodeType() == Node.TEXT_NODE) {
97 textValue = currentNode.getNodeValue();
104 if (textValue !=
null) {
105 strBuf.append(textValue);
110 charArray = strBuf.toString().toCharArray();
This is a parser to return a character array for difference purpose.
CharacterParser(Node node)
Standard constructor.
final TextNodeIterator textNodes
char[] getCharArray()
Returns the character array representation of the text.
final List< TextNodeEntry > nodeList_
List< TextNodeEntry > getNodeList()
Returns the Node pointer with the given character position.
void addNewNodeEntry(int textLen, Node node)
Adds a new Node entry.
Object start()
Move to the beginning of the sequence.
Object next()
Move to next element in the sequence.
A small class to hold the start/end character position and the Node pointer in a text Node.
This is an implementation of the Iterator interface.
This interface contains constants for StarOffice XML tags, attributes (StarCalc cell types,...
String TAG_TAB_STOP
Element tag for text:tab-stop.
String TAG_SPACE
Element tag for text:s.
Document and PluginFactory implementations for XML based formats.
Provides interfaces for converting between two Document formats, and supports a "merge" interface for...